How do you enable or disable a select tag after selecting an option from the first select tag in jQuery, but current version is not working.
$("select[name='selectALPHA']").change(function () {
if ($("select[name='selectBRAVO'"].attr('enabled') == false {
$("select[name='selectBRAVO']").attr('enabled', 'true');
}
else
{
$("select[name='selectBRAVO']").attr('enabled', 'false');
}
});
I’m not so very sure what you are trying to achieve here but I think that this can help you :
See working example here : JSFiddle