jQuery .prop(“disabled”, false) is not enabling an input

后端 未结 4 824
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 01:30

I\'m having a problem re-enabling an input after it has been disabled on the page load.

I\'m using two inputs to accept two dates, but I want it that the second input is

4条回答
  •  情话喂你
    2021-02-07 01:51

    Had the same problem some time ago:

    $("#date1-end").prop("disabled", null);
    

    @Gautam3164's answer is also good.

提交回复
热议问题