javascript - Is there a way of setting "!important" for event.stop()? -


i have script event.stop() , displays alert on links.

some of these links have other js scripts linked them, tabs, accordions , forth.

of course event.stop() doesn't fire on them (the alert shows tabs etc. still work).

the project quite big (many different plugins , jses) , i'm wondering what's best way of making event.stop() work before other scripts do? css !important.

callbacks? many scripts?

you need call event.preventdefault() or event.stoppropagation() below:

$(selector).on('click',function(event){    event.stoppropagation(); }); 

not: event.stop !


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -