Why does asp.net mvc form submits itself on button clicks when javascript function error?
- by melaos
hi guys,
i'm new to the asp.net mvc,
and while working on this, i used very basic asp.net mvc stuff like beginform, etc.
i used a lot of jquery codes this round for client side validation, ajax data retrieval, and other gui works.
and i used a combinations of html inputs buttons, etc and the asp.net mvc type of controls.
what i noticed is that whenever i click on a button control, which sometimes are tied to either jquery oclick events, when there's a javascript error, the page will just go on and submit.
why is this happening and what am i missing here?
my bad for the dumb questions..
thanks