smeranda schrieb:
> How do I use jquery to find a particular table cell based of the text inside
> the cell and add a .css class to the table cell?
>   
Try this:
$("#mytable td").filter(".someclass").contains("sometext");
In short:
$("#mytable td.someclass").contains("sometext");

If you have a big table and "#mytable td" selects to many elements, try 
to give more context information, like the row (tr), eg. $("#mytable 
tr:first td.someclass")

I hope that helps.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to