bounav bounav - 1 year ago 82
HTML Question

Difference between <input type='button' /> and <input type='submit' />

There is no such thing as a stupid question, so here we go: What is the difference between

<input type='button' />
<input type='submit' />

Answer Source

<input type="button" /> buttons will not submit a form - they don't do anything by default. They're generally used in conjunction with JavaScript as part of an AJAX application.

<input type="submit"> buttons will submit the form they are in when the user clicks on them, unless you specify otherwise with JavaScript.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download