Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between event.PreventDefault and event.stopPropagation?



What is the difference between event.PreventDefault and event.stopPropagation?..

Answer / chaitanya

event.preventDefault(): Stops the default action of an element from happening.

event.stopPropagation(): Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. For example, if there is a link with a click method attached inside of a DIV or FORM that also has a click method attached, it will prevent the DIV or FORM click method from firing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

How can we add change font size using jquery?

0 Answers  


Explain each() function in jquery?

0 Answers  


How you will use jquery means requirement needed for using jquery.

0 Answers  


How to fetch the values of selected checkbox array using jquery?

0 Answers  


Define .siblings() method in jquery?

0 Answers  


What is $('div')? : jquery mobile

0 Answers  


Define "beforesend(xhr)" paremeter of jquery ajax method?

0 Answers  


How we can hide a block of html code on a button click using jquery?

0 Answers  


Explain cdn? : jquery mobile

0 Answers  


How to call a method inside code-behind using jquery?

0 Answers  


Is jQuery a programming language?

0 Answers  


What are the advantages of jQuery?

0 Answers  


Categories