All Buttons Are Submitting Form

Posted by Weston Ganger

All buttons in forms default to type="submit"

To make buttons in your form that dont submit the form such as a cancel button add type="button":


<form>
  <button type="button"> Cancel </button>
  <button> Submit </button>
</form>

Article Topic:Software Development - HTML / CSS

Date:August 20, 2014

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected