<li>
<a><span><i></i>Image<span>Description</span></span></a>
</li>
I would like to extract the "Image" text from the above DOM.
If I try to get $("span").text()
, it returns "ImageDescription" text.
How can i get only "Image" text from the kind of structure in Jquery?