I’m using JQuery UI to drag divs around a container and i want to fire an event when the user releases the mouse (stops dragging).
Any ideas on how to do this would be great. Thanks in advance
-Shawn
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.
If you’re using jQuery UI, you have a built in function already:
http://docs.jquery.com/UI/Draggable#event-stop
If you’re not using the Draggable function from the UI, I’d recommend you do so. It will make your life easier for this! It’s already written!