Skip to content

Instantly share code, notes, and snippets.

@sabrinaluo
Created December 31, 2014 09:21
Show Gist options
  • Save sabrinaluo/18be8a2e7e42e2cd2793 to your computer and use it in GitHub Desktop.
Save sabrinaluo/18be8a2e7e42e2cd2793 to your computer and use it in GitHub Desktop.
whether an element has children
$("#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