Why Event.stoppropagation(); Not Working On Switch?
can you please tell me why event.stopPropagation(); not working on switch ? I click on on click it print the row event(console) .It should print only switch console. when I
Solution 1:
Working example: http://jsfiddle.net/pT2bU/1/
JavaScript
$(document).on('pageinit', '#home', function(){
$(document).on('vclick','#testSuitConfiguration',function () {
console.log('pp')
});
$(document).on( "slidestop", ".selectSequence_h" ,function( event, ui ) {
console.log('==');
event.stopPropagation();
event.stopImmediatePropagation();
});
});
I have replaced your click event with jQuery Mobile version called vclick, this one don't suffer from event propagation and it works on desktop and mobile browsers.
Post a Comment for "Why Event.stoppropagation(); Not Working On Switch?"