Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disable option dropdown jquery

//disable by value
$("#ddlList option[value='jquery']").attr("disabled","disabled");

//disable by text
$('#ddlList option:contains("HTML")').attr("disabled","disabled");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #option #dropdown #jquery
ADD COMMENT
Topic
Name
4+1 =