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

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

    Working example: http://jsfiddle.net/d9vzs/

    This is not how you enable disable jQUery Mobile input elements.

    It can be done with this functions:

    $( "input" ).textinput( "disable" );
    
    
    $( "input" ).textinput( "enable" );
    

    Official documentation: http://api.jquerymobile.com/textinput/#method-disable

提交回复
热议问题