Posted By

S_Park on 03/25/11


Tagged


Versions (?)

Check whether an element exists


 / Published in: jQuery
 

  1. if ($("#myElement").length > 0){
  2. // do this
  3. }

Report this snippet  

You need to login to post a comment.