disable input field by id jquery 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);