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

后端 未结 4 820
爱一瞬间的悲伤
爱一瞬间的悲伤 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:47

    Prop is used just to get the value and set the value. Refer this http://api.jquery.com/prop/

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

提交回复
热议问题