CodePudding user response:
Set an attribute type="button"
on the <button>
element. By default HTML buttons in a form are of type submit
CodePudding user response:
Set an attribute type="button"
on the <button>
element. By default HTML buttons in a form are of type submit