Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

jquery select multiple elements with same class

function checkads() {
    $('.someclass').each(function(){           
       if($(this).height() < 50) {
             $(this).parent().parent().prepend('<div id="ad-notice">Please support our website</div>');
       }
   });
}

$(document).ready(checkads);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #select #multiple #elements #class
ADD COMMENT
Topic
Name
6+3 =