event.isDefaultPrevented()
Returns whether event.preventDefault() was ever called on this event object.
.event.isDefaultPrevented()🡢 Boolean
Checks whether event.preventDefault() was called.
HTML
$("a").click(function (event) {
alert(event.isDefaultPrevented()); // false
event.preventDefault();
alert(event.isDefaultPrevented()); // true
});
DEMO