Reputation: 63626
Select these:
<img src="...">
but not:
<img />
Upvotes: 1
Views: 138
Reputation: 2845
var imgFile = $("img").attr("src");
Reputation: 21615
See http://docs.jquery.com/Selectors
$("img[src]")
Upvotes: 8