How can I retrieve a row based on column values using jQuery DataTables?

I would get the data with fnGetData, loop through the rows and use $.inArray.

I would get the data with fnGetData, loop through the rows and use $. InArray: function getRow(table_id, arg1, arg2) { var oTable = $('#' + table_id).dataTable(), data = oTable.fnGetData(), row, i, l = data. Length; for ( I = 0; I InArray(arg1, row) == 0 && $.

InArray(arg2, row) == 1 ) { return $('#' + table_id + ' tr'). Eq(i); } } return false; } $row = getRow('table_id', 'foo', 'bar'); NOTE: Untested.

Try using this selector: $("tr td:nth-child(2):contains('value')"). Siblings(":contains('test')") Take a look at this fiddle: jsfiddle.net/B4wMp/8/ DataTable just gets rendered as a plain old html table.

Nice and concise, though contains will return true on partial values when you don't want it to – returning true for new york when you've asked for new. To target a specific column, you'll also have to add ...siblings. Eq(column_n)..., making sure you choose the right one from the array based on the new indices that result from excluding the originally selected element.

– Jed Jun 22 at 21:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions