Posted By

dkl3in on 08/31/11


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


How to check whether an element exists using jQuery

 / Published in: jQuery

  1. if ($("#elementId").length > 0){
  2. // do something here
  3. }

Report this snippet  

You need to login to post a comment.