onChange and onSelect in DropDownList
I have a DropDownList that asks the user if he want to join the club: Do you want to join the club Yes No Under this list there is another list that is set to disabled as a default. This list has the departments of the club. This list will not be enabled until the user chooses Yes. I built the following code but the problem that I couldn't solve is let's assume the user chooses Yes then he changes his decision so he will choose No again. In this case the list of the departments still enabled. I want it to be disabled when he chooses No again. <html> <head> <script type="text/javascript">