I do not know how to select the first span in the following example.
<div class="sp">
<span style="visibility:hidden">abc</span>
<span>xyz</span>
</div>
I have tried using this one, did not work.
$('div.sp span[visibility=hidden]') // not work
thanks!
See Attribute Equals Selector