Jquery prevents subsequent events from executing only the first event
- 2020-03-30 03:35:52
- OfStack
Sometimes, there will be multiple events after clicking on the same TAB. If you want to execute the first event and abandon the later event, you can add a piece of code to prevent:
<span onclick="alert(' The rest will not be executed !');event.stopPropagation();">click me!</span>