Can someone please explain the main difference between <input type='button' /> and <input type='submit' /> in a HTML form?
<input type='button' />
<input type='submit' />
<input type='button' /> - There is no default action. You have to use JavaScript to add an action.
<input type='submit' /> - Submits the form data.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
<input type='button' />
- There is no default action. You have to use JavaScript to add an action.<input type='submit' />
- Submits the form data.