Javascript, jQuery
To check if the div with specific id or class exist, you can use .length after the selector to see if it matched any elements, like this:
if($("#id").length == 0) { //it doesn't exist } else{ //it exist, do something }
By Keenlio, June 3, 2014
Your email address will not be published. Required fields are marked *
Name *
Email *
Give an anwser * 4 × = twenty
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Gas Detector Specialist Indonesia Cosmetic Online Malaysia Cosmetic Online
What do you think?