Using jQuery, I am trying to disable all non-selected items from multiple select elements except for one. I was trying to exclude the one select element based on its name attribute: name="tloStatus".
$(document).ready(function () { if($("select[name!=tloStatus]")) { $('option:not(:selected)').attr('disabled', true); } }); How do I only apply this:
$('option:not(:selected)').attr('disabled', true); to every select element but the one with name="tloStatus"?