Alex Rivera | Logout

jQuery Partial Selectors

Asked 2009-09-02T16:00:12.933
19

I have a number of tables, which have nested tables. I using jQuery to hide some of the table cells as a number are empty or the contents irrelevant.

I use jQuery to hide all TD's and then jQuery to show them, for instance, if they contain a <P>.

Unfortunately some of the TD's don't contain anything but still need to be shown. The class the TD's are given is dynamic so I wont be able to code for them all (Sensibly) however they do all end 'Node'

I was wondering if its possible to do something like...

$(function() {
   $('TR .*Node').css('display','inline');
});
Edit
Report

1 Answer

2
$(function() {
     $('td[class*=Node]').css('display','inline');
});
answered 2009-09-02T16:06:19.770

Your Answer