Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get a specific row of ojTable by its key value?

Sleepyfish-OracleMay 31 2016 — edited Jun 1 2016

I want to get a specific row with its key value by Javascript.

Now we can do that with row index, in three ways:

To get the first row, not the header of table whose id is "table"(Table - Using ko.observableArray)

1. $("#table").prop('rows')[1];
2. document.getElementById("table").rows[1];
3. $('#table tr')[1];
However, key value of the first row is "1001", how can i get the row with the "1001", when I don't have the index of the first row?

Thanks!

Comments
Post Details
Added on May 31 2016
3 comments
602 views