How to obtain this in jQuery?
I have a bunch of 开发者_Go百科image tags in my HTML page. I want to take count of those images which have the src in it somewhere called warning.png. How to match this pattern and get the count. How to get in jQuery?
<img src="/images/warning.png?1284446116" alt="Warning">
Thanks
This should work:
$('img[src*="warning.png"]')
精彩评论