Posted By

jaff on 02/18/10


javascript jquery Coding

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


limit the use of a function in jQuery by targeting a class or id

 / Published in: JavaScript

  1. $(document).ready(function(){
  2. if ($(".target").length) {
  3. //function code
  4. }
  5. });

Report this snippet  

You need to login to post a comment.