The code below disable whole dropdownlist when select. How do i only disable and grey out certain values in the dropdownlist?
function ViewPersonalinfoBoxes(fm)
{
if (fm.PolicyType.value=="VEHICLE" || fm.PolicyType.value=="VEHICLENO")
{
alert('System not available!');
document.RegForm.PolicyType.disabled = true;
}
}
- RegForm is the form name
- PolicyType is the dropdownlist