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
Post a Comment