When I click a <button>
, automatically a (GET-)submit event is triggered. How can I turn this behaviour off?
Button has a default of type submit. Simply add type="button"
to the markup
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With