<span class="one">
<span class="two">
<span class="Three">
<span class="Four">
<a href=''>1</a>
<a href=''>2</a>
<a href=''>3</a>
</span>
</span>
</span>
</span>
I want to select the first a tag from span class="one"
Is this a right syntax?
$('span.one > a:firstchild')
Thanks
try this . you have missed
-in between first and child. this is to access direct childreference : first-child
OR
do you want to select
ainside span.four from span.one