Tutorialsplane

first-child Selector- jQuery


$( “:first-child” ) – selector is used to select the first child of its parent.

Syntax : first-child Selector using jQuery

first-child Selector- jQuery Example




<title>first-child Selector- jQuery Example</title>
 
 
  
	

 
Click Me

<ol>
  <li> First Item </li>
  <li> Second Item </li>
  <li> Third Item </li>
</ol>

             

Try it »