+ 1
Why is the page blank after you clicked the button?
3 Réponses
+ 17
Buttons in forms cause the form to redirect/submit to its action attribute url... Switch <form> to <div> perhaps?
+ 7
I prefer @ValentinHacker's answer because I don't think you need a form, but you can also cancel the submit by returning false (this tells Javascript the form failed the 'validator function')
20: return false; // 'validator' says stop
0
oh yes thank you