Hi All, I have a HTML structure:
<div class="mydiv">xx
<span>test1</span>
<span>test2</span>
<div class="inerdiv">
<span>inner span</span>
</div>
</div>
<span>test3</span>
Now I want to apply styling to the span which contains "inner span" .
$(function() {
$(".mydiv").click(function() {
$(".mydiv").next().find("span").css("border", "1px solid yellow");//not working
});
});
what should be the proper code?