Input elements can be easily disabled but what way is there to enable them?
The below code can disable but not enable the input element.
$('#dis').click(function() { $('#inp').attr('disabled', 'true'); }); $('#enb').click(function() { $('#inp').attr('disabled', 'false'); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <input id='inp' type='text'> <button id='enb'>Enable</button> <button id='dis'>Disable</button>