There few items in dropdown menu. one item is selected I want to freeze the item.
$('#m_select2_2').change(function () {
$.each(this.options, function (i, item) {
console.log("checked");
if (item.selected) {
$(item).prop("disabled", true);
} else {
$(item).prop("disabled", false);
}
});
});
This one is not working. please help me .