samedi 16 juillet 2016

How to use jquery selector to get the following text?


Suppose the website's html looks like this.

<img src="pic/helloworld_123.jpg" width="48" border="0" alt="" title="">

How to use jquery selector to get the following text?

helloworld_123.jpg

Thx

I tested this but it doesn't work.

$("img[src*='']").text();

Aucun commentaire:

Enregistrer un commentaire