Created
May 20, 2014 13:22
-
-
Save amitabhaghosh197/bc800ea0c3e22350442f to your computer and use it in GitHub Desktop.
children() api jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Works for a children div | |
$( "div" ).children( ".selected" ).css( "color", "blue" ); | |
//or | |
$( "ul.level-2" ).children().css( "background-color", "red" ); | |
//more http://api.jquery.com/children/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment