SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using jQueryUI - there is an onDrag event. If you're not, then attach your listener to mouseup(), not click().