Consider this snippet.
<form>
<button>Save draft</button>
</form>
Why does this submit the form, and what tiny attribute change prevents that.
BobaMilk
Consider this snippet.
<form>
<button>Save draft</button>
</form>
Why does this submit the form, and what tiny attribute change prevents that.
BobaMilk
<button> inside a form defaults to type="submit", so make it <button type="button">Save draft</button> if it should just open a draft action.
BayMax
:: Copyright KIRUPA 2024 //--