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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Jquery can be used in what scenarios?

772


What is the advantage of using minimized version of jQuery?

828


Define cache paremeter of jquery ajax method?

749


Explain the animate function.

836


How can you use a jquery library in your project?

762


How we can remove an attribute of an html tag in jquery?

750


What are the paremeter of jquery ajax method?

784


Explain type paremeter of jquery ajax method?

774


Which program is useful for testing jQuery?

831


Define the script build up by jquery?

853


How can jquery library be added to pages?

842


What were the biggest challenges of getting the 1.7 release out there?

805


How to use jquery?

859


What is jquery and what are the advantages?

814


Define slidetoggle() effect?

772