make an input enable and disabled on click code example
Example 1: disable input field with jquery
// Disable #x
$( "#x" ).prop( "disabled", true );
// Enable #x
$( "#x" ).prop( "disabled", false );
Example 2: enable input jquery
$('input').prop('disabled', false);