I wrote this on a simple ASP.NET page:
jQuery(document).ready(function() { jQuery('form').submit(function() { alert('kikoo'); return false }); });
and when I submit (by clicking on a button, link, …), I never see the alert box.
Is there something in asp.net page that ‘bypass’ the submit (I think about the dopostback javascript method)
Can anyone tell me why?
I found the problem.
when i click on some button, they call a all javascript method that does form.submit. This is not caught by jQuery.
I’ll correct the behaviour of my button and it’ll work fine.
thanks all for help.