a href nested in DIV element in ASP.NET C#
- by Gal V
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!