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
Prop is used just to get the value and set the value. Refer this http://api.jquery.com/prop/
$("#date1-end").prop("disabled", false);
Had the same problem some time ago:
$("#date1-end").prop("disabled", null);
@Gautam3164's answer is also good.
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
Try with removeAttr
like
$("#date1-end").removeAttr("disabled");
You can also try with prop
like
$("#date1-end").prop("disabled",false);