jQuery

jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery event.preventDefault() Method

jQuery event.preventDefault() Method

 

 

The event.preventDefault() method stops the default action of an element from happening like preventing a submit button from submitting the form and the same with the URL.

 

Syntax:-

 

Its syntax is:- event.preventDefault()

 

Further Explanation:-

 

Parameter Description
event Required. The event parameter comes from the event binding function

Code Explanation

All Tutorials related to jQuery Events

All Sections related to jQuery