Using jQuery, I would like to highlight all rows, where the second column contains the - character.
Here are the details of the second column...
How can I achieve this?
The 2nd in Lucas' answer does not work for me in jquery 1.4, but this does:
$('tr').find('td:eq(1):contains(-)').parent().css('backgroundColor', 'yellow');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With