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>
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
Want me to help develop your next Ruby-on-Rails project or application?
Contact Me