Let said my form have 2 Select Element:
select1 {dog, cat}
select2 {dinner, sleeping}
If the user selects: select1 = cat, I want to set select2 to disabled=true, i.e., user cannot interact with select2 any more.
If the user selects: select1 = dog, then I want to re-enable select2. Then the user can choose dinner or sleeping with select2 option.
Is this possible to do in javascript? thx.
select1 {dog, cat}
select2 {dinner, sleeping}
If the user selects: select1 = cat, I want to set select2 to disabled=true, i.e., user cannot interact with select2 any more.
If the user selects: select1 = dog, then I want to re-enable select2. Then the user can choose dinner or sleeping with select2 option.
Is this possible to do in javascript? thx.