Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on("click", ".container", function(){
- var img = $(this).find("img"), // select images inside .container
- len = img.length; // check if they exist
- if( len > 0 ){
- // add class to div
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement