I’ve the following element
<div class="class1 class2 class3"></div>
I’m trying to get all the elements with class name ‘class3’ using jquery
$('.class3').droppable();
But i’m not getting the above div as droppable. Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit for updated question:
.droppable()doesn’t take a function, it takes an object or nothing, you just need this for the defaults:Also make sure it’s in a
document.readyhandler, like this:Then, also make sure jQuery UI is included correctly in your page…you should be getting an error if this isn’t the case (
.droppable()isn’t a function, etc).