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

Had the same problem some time ago:

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

@Gautam3164's answer is also good.


Try with removeAttr like

$("#date1-end").removeAttr("disabled");

You can also try with prop like

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

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