a href nested in DIV element in ASP.NET C#
Posted
by Gal V
on Stack Overflow
See other posts from Stack Overflow
or by Gal V
Published on 2010-04-27T11:21:25Z
Indexed on
2010/04/27
11:23 UTC
Read the original article
Hit count: 257
Hello all, My question is quite simple, I created a DIV, with a HyperLink control in it. As following:
I created an 'onclick' event in jQuery for the DIV as well:
$('#divOne').click(function() { alert('You clicked on the DIV element'); });
My goal is to trigger this event when the DIV area is clicked (working fine), BUT- When the HyperLink is clicked, I need the page to redirect WITHOUT triggering the DIV 'onclick' event (can use JavaScript or jQuery as needed).
Thanks all!
© Stack Overflow or respective owner