Jquery stopPropagation method dosen\'t work with live method. Below the code is works fine with click instead of live method. Any help greatly appreciated.
That is because .live()
relies on event propagation.
The event is not actually placed on the element, but rather on the root node. The event then bubbles up to that node, checks the selector to see if it has a match, and fires if so.
Because the event isn't fired until it is already at the top of the hierarchy, there's no propagation left to stop.