Reputation: 6894
I'm using Jquery UI and i have implemented drag and drop functionality I have binded click functionality to each element
But when the element is dropped in droppable area the click functionality doesnt work Not only click ... none of the functionality binded to element works..
Upvotes: 1
Views: 287
Reputation: 7556
Did you use .click()
to bind the events or did you use .on()
?
Where have you placed the handling of your events ?
Are those ui elements loaded or created after the DOM has been loaded ?
All those things you have to consider because if your elements are added AFTER the DOM has been loaded you have to use .on("click",function(){})
to bind you event handler to the elements. Because if you have used .click() and the element you are trying to access isn't loaded at this point this doesn't work !
Upvotes: 1