Disabled problem under input type=button, chrome

I use onclick to call function save () in input, first use attr ("disabled", true) in the save method, then call ajax to submit data, and set ajax to submit synchronously, and remove disabled after ajax execution, but I find that input still responds to the save method after many clicks under chrome before save is finished, but this will not happen under IE


according to your logic, it seems completely unnecessary to set ajax to synchronization.

you should have no problem removing disabled directly after the ajax request is successful ( function success () {} ).

Menu