gal-s
8/7/2019 - 2:05 PM

disabled select - sending value with form

// the problem: if Select/Option is disabled - the selected value is not submitted with the form
// so thef following statement cannot be used:
// $("#selectType").prop("disabled",true);

// The solution: making other optios disabled (but the selected one) - so they cannot be pressed
$('#selectType').find(':not(:selected)').attr('disabled','disabled');