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

c# - how to write client side events functions for the combobox items -

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