What is event preventdefault () and event stoppropagation () in jquery?



What is event preventdefault () and event stoppropagation () in jquery?..

Answer / Rubi Chahal

event.preventDefault() prevents the default action of an event, such as submitting a form or following a link. event.stopPropagation() stops the event from bubbling up the DOM tree, preventing any parent handlers from being triggered. In jQuery, these methods are called on event objects passed to event handlers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Which is the starting point of code execution in jQuery?

1 Answers  


What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

1 Answers  


Is it possible that jquery html work for both html and xml document?

1 Answers  


How to add and remove css classes to an element using jquery?

1 Answers  


Can you please explain the difference between prop and attr? : jquery mobile

1 Answers  


How do I check if the DOM is ready?

1 Answers  


How to check/uncheck an input in jquery?

1 Answers  


what is the use of param() method in jquery .

1 Answers  


What is cdn? Explain

1 Answers  


How can you disable jquery animation?

1 Answers  


How to read cookies in jquery?

1 Answers  


Can we use protocol less URL while referencing jQuery from CDNs?

1 Answers  


Categories