Hello,
i have multiple rows with the same id and when used the jquery function :
hide();
it hide the first row only and ignore the rest rows.
Could you please tell how can i fix it ?
Thanks in Advance
Neveen
Hello,
i have multiple rows with the same id and when used the jquery function :
hide();
it hide the first row only and ignore the rest rows.
Could you please tell how can i fix it ?
Thanks in Advance
Neveen
T.J Crowder above is correct.
Another thing you may find useful in jQuery is the each() function.
$('tr.foo').each(
function(object){
// do more stuff
object.hide();
}
);
With that, you can apply conditional logic as well, maybe only hide the row if it's content contains a filter-word or something.
I didn't actually know that I didn't have to use the 'each'. (thanks TJ)