Find tag in another tag using JQuery

Posted by Virendradugar under jQuery category on | Views : 7195
Below code will find the span tag in all the div of the page and set it's font weight to bold using JQuery. You can download the Jquery from

<script type="text/javascript" src="Script/jquery-1.3.2.js"></script>
<script type="text/javascript">

Here is the div in which I have placed a span tag.

<div><span>Virendra Dugar</span></div>

JQuery provides a inbuilt function "find()" which search for the passed expression.

Click below link to get mostly asked jQuery interview question.

Comments or Responses

Login to post response