user694971 user694971 - 6 months ago 12
jQuery Question

jQuery-UI <button> automatically submits its form

When I click a

<button>
, automatically a (GET-)submit event is triggered. How can I turn this behaviour off?

Answer

Button has a default of type submit. Simply add type="button" to the markup