Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <div class="profile-feed row">
  2. <div class="col-sm-6"> </div> // does this particular div has any child?
  3. ...
  4. </div>
  5.  
  6. if($( ".col-sm-6" ).children()){
  7. alert('childern found')
  8. }
  9.  
  10. var count = $(".col-sm-6").children().length;
  11.  
  12. var len = $(".col-sm-6").children().length;
  13. if(len > 0)
  14. alert('Child exist');
  15. else
  16. alert('Child does not exist');
  17.  
  18. var kids = $('.col-sm-6').children();
  19. if(kids.length > 0) {
  20. alert('has children')
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement