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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -