disable select jquery code example
Example 1: jquery disable input
$("#inputID").prop('disabled', true);
$("#inputID").prop('disabled', false);
$("#inputID").attr('disabled','disabled');
$("#inputID").removeAttr('disabled');
Example 2: jquery disable select
$('#pizza_kind').prop('disabled', false);
Example 3: disable input field with jquery
$( "#x" ).prop( "disabled", true );
$( "#x" ).prop( "disabled", false );
Example 4: disable option dropdown jquery
$("#ddlList option[value='jquery']").attr("disabled","disabled");
$('#ddlList option:contains("HTML")').attr("disabled","disabled");
Example 5: jquery enable textbox
$( "#x" ).prop( "disabled", true );
$( "#x" ).prop( "disabled", false );