Topic awaiting preservation: Using onChange in an HTML dropdown menu (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 07-12-2005 14:19
Hello there, it's me, the resident JS idiot. I'll try to be brief this time. The HTML code: code: <form name="schemes"> <select name="scheme" size="1"> <option value="lanterns">Lanterns</option> <option value="coastal">Coastal</option> <option value="buddha">Buddha</option> <option value="osanri">Osan-ri</option> </select> </ form>
|
Neurotic (0) Inmate Newly admitted From: |
posted 07-12-2005 14:57
I think you just got the wrong element: code: <form name="schemes"> <select name="scheme" size="1" onchange="setStyle(scheme.options[this.selectedIndex].value)"> <option value="lanterns">Lanterns</option> <option value="coastal">Coastal</option> <option value="buddha">Buddha</option> <option value="osanri">Osan-ri</option> </select> </form> |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 07-12-2005 16:54
Unbelievable. I should really stop trying to code when tired. My brain just doesn't work like it used to. |
Obsessive-Compulsive (I) Inmate From: UK |
posted 07-12-2005 17:12
No sweat. |