Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="profile-feed row">
- <div class="col-sm-6"> </div> // does this particular div has any child?
- ...
- </div>
- if($( ".col-sm-6" ).children()){
- alert('childern found')
- }
- var count = $(".col-sm-6").children().length;
- var len = $(".col-sm-6").children().length;
- if(len > 0)
- alert('Child exist');
- else
- alert('Child does not exist');
- var kids = $('.col-sm-6').children();
- if(kids.length > 0) {
- alert('has children')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement