Created
December 31, 2014 09:21
-
-
Save sabrinaluo/18be8a2e7e42e2cd2793 to your computer and use it in GitHub Desktop.
whether an element has children
This file contains 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
$("#ele").children().length>0; // if has children return true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment