Can I count the number of elements with a specific attribute?
For example all the images with the src attribute test.gif
Use the CSS attribute selectors to filter on the attribute
$("img[src='test.gif']").length;
the size() and length both returns the number of elements matched;
1.4m articles
1.4m replys
5 comments
57.0k users