I would like to know if it was possible using Javascript to find an image tag by its alt text. For instance I have this tag:
You can do this with JQuery. The following JQuery code will return any image with the alt tag set to "Myimage":
$('img[alt="Myimage"]').
However it would be a lot easier and a lot more performant to use the id attribute of the image tag.