Is the element "mydiv" in your page?
if ($("#mydiv").length > 0){
  // do something here
}
Written by Maurizio
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Jquery 
Authors
Related Tags
#jquery
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
 
