e.preventDefault();
from https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault
Cancels the event if it is cancelable,
without stopping further propagation
of the event.
More Related Contents:
- jQuery click events firing multiple times
- Can I call jQuery’s click() to follow an link if I haven’t bound an event handler to it with bind or click already?
- What is the difference between the mouseover and mouseenter events?
- How can I get jQuery .val() AFTER keypress event?
- jQuery event that triggers after CSS is loaded?
- Get the clicked object that triggered jquery blur() event [duplicate]
- Drop event not firing in chrome
- How do I handle a click anywhere in the page, even when a certain element stops the propagation?
- Is there an equivalent to e.PageX position for ‘touchstart’ event as there is for click event?
- jQuery .on() method doesn’t see new elements
- Cancel click event in the mouseup event handler
- How do I detect a click outside an element?
- jQuery .live() vs .on() method for adding a click event after loading dynamic html
- Firing event on DOM attribute change
- Check if event exists on element [duplicate]
- How to differentiate single click event and double click event?
- Detect multiple keys on single keypress event in jQuery
- How to unbind a listener that is calling event.preventDefault() (using jQuery)?
- Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser
- How can I listen for a click-and-hold in jQuery?
- Listening for Youtube Event in JavaScript or jQuery
- Throttle event calls in jQuery
- Why is ‘event’ available globally in Chrome but not Firefox?
- Can you have a JavaScript hook trigger after a DOM element’s style object changes?
- Moving a focus when the input text field reaches a max length
- jQuery – How can I temporarily disable the onclick event listener after the event has been fired?
- jquery/javascript: function(e){…. what is e? why is it needed? what does it actually do/accomplish?
- jQuery Datepicker “After Update” Event or equivalent
- Fire oninput event with jQuery
- Is My Page Being Loaded from the Browser Cache?