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

delphi - ESC/P programming! -

c++ - error: use of deleted function -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -