Jquery: Find First Element By Attribute
I have a list with categories on my left side on the webpage, and a list with items on the right side. The list with items have an attribute called cat, and the values are numbers.
Solution 1:
This will select you the elements with 'foobar' as the catid. It seems to be this what you want right?
$('.menuListUl li div[catid="foobar"]')
Post a Comment for "Jquery: Find First Element By Attribute"