Using only jQuery, how would I select the next rows in a table with an ID length > 0?
In my code, I'm using a hybrid of jQuery and javascript. And it works fine. However, I'd like it to be all in jQuery.
var rowsWithIds = new Array();
var rows = $(myTable).nextAll("tr");
for(var i=0; i < rows.length; i++)
{
if(rows[i].id.length > 0)
rowsWithIds[rowsWithIds.length] = rows[i];
}
Perhaps, the solution might look like:
var rowsWithIds = $(myTable).nextAll("tr").has("some selector");
or
var rowsWithIds = $(myTable).nextAll("tr and some selector");
Let me know. Thanks!