0

I've this in a page

       $(".dsd").click(function(){

When i used firebug,it gives me this error

     $(".dsd").click is not a function

What is this?

2
  • Are you sure you have a element with the class 'dsd'? Post the whole click function. Commented Jan 17, 2012 at 8:00
  • post more code and make sure jquery is loaded. Commented Jan 17, 2012 at 8:00

3 Answers 3

1

This could be due to a conflict with some other client framework you might be using which has hijacked the $ function. Take a look at jQuery.noConlict for possible solutions about how you could use jQuery with other frameworks.

Sign up to request clarification or add additional context in comments.

Comments

0

Its seems to be a conflict in my point of view. You have a libary that also want the shortcode $. Have a look at jQuery.noConflict and try to use jQuery(".dsd").click...

Comments

0

Try

$(".dsd").each(function () {
    $(this).click(function () { ... });
});

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.