I have jquery draggable attached to a DIV container, each of its child elements has a click event, how do I prevent the child event from firing when I drag the main parent container.
I only want to fire the child event when I click on it, not when I drag the whole thing.
I have made a demo: http://jsfiddle.net/sygad/RgdPq/1/
Any help appreciated.
You can use a temp variable to track the drag status and then change from the click event to the mouseup event like this jsFiddle example.
jQuery