html - Hyperlink in a div with jQuery.toggle Event -


i have div element wich has jquery.toggle event. if add hyperlink content of div, click on hyperlink fire jquery.toggle event of parent div. possible prevent ? hyperlink should open weblink, , not fire event.

try :

$("#linkinsideyourdiv").click(function(event)) {     event.stoppropagation();     // other stuff } 

Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

c# - Binding attached property to IEnumerable -