I need to find an img by name and src. I have been trying the following to no avail.
var s = $(\"img[src=\'/images/greendot.gif\'][name=\'BS\']\"); >
var s = $(\"img[src=\'/images/greendot.gif\'][name=\'BS\']\");
without seeing the html I would say check your path.
$("img[src$='greendot.gif'][name='BS']")
given the following HTML:
this jquery worked:
var x = $("img[src$='twitter_logo_header.png'][name='logo']"); alert(x.attr("src"));