jQuery detect click on disabled submit button

后端 未结 10 851
日久生厌
日久生厌 2020-12-03 06:20

Fiddle: http://jsfiddle.net/ugzux/

As you can see, I have a form with a disabled (via javascript) submit button.

I want to be able to bind a click event to

10条回答
  •  有刺的猬
    2020-12-03 07:07

    Just don't disable the button, but prevent submit of the form. Looks like you're trying to validate the form; when you let JS take over the submit action, and return false, the form won't be submit

提交回复
热议问题