Is it possible to get a child dom element, which will be the first child of a specific type.
For example in both of these examples I want to get the img element:
<a id="mylink" href="#"><img src="myimage.jpg" /></a>
vs.
<a id="mylink" href="#"><span></span><img src="myimage.jpg" /></a>
Try this