Posted by: Paul on: April 29, 2008
Along with dom traversal (ala CSS2), you can also use CSS2 and CSS3 selectors in jQuery. For example:
lb = $('a[rel="lightbox"]');
will get you all the anchor elements in the dom which have the rel="lightbox" attribute. This, however:
lb = $('a[rel*="light"]');
will get you all the anchor elements in the dom which have the substring “light” in their rel attribute.
recent comments