user694971 user694971 - 1 year ago 91
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download