Salesqueen Software Solution

Download Free Estimation Now Click Here
Notifications
Clear all

What is the result if a jQuery Event Handler returns false?

3 Posts
3 Users
0 Reactions
140 Views
Posts: 150
Topic starter
(@dinesh)
Estimable Member
Joined: 2 years ago

jQuery Event Handler

2 Replies
Posts: 461
(@dinesha-g)
Reputable Member
Joined: 2 years ago

How to utilize the return false statement in JavaScript scripts, as well as when to use it. Additionally, it will clarify the distinction between preventDefault and return false statements.

Reply
Posts: 100
 Kavi
(@kavi)
Estimable Member
Joined: 2 years ago

Returning false; from an event handler disables the event from doing the default action and from propagating through the DOM. It is equivalent to invoking e.preventDefault and e.stopPropagation on the jQuery.Event object that was supplied.

Reply
Share: