Justin
05-27-2003, 02:07 PM
i am haveing troble with the pull down menues, how do you get javascript read what is slected and input it into a var who1
|
Click to See Complete Forum and Search --> : forms Justin 05-27-2003, 02:07 PM i am haveing troble with the pull down menues, how do you get javascript read what is slected and input it into a var who1 requestcode 05-27-2003, 02:28 PM Can we see your code? That would help us to figure out what is wrong. Jona 05-27-2003, 02:39 PM You mean like this? <script type="text/javascript"> <!-- function setVars(sel){ var who1 = sel; } //--> </script></head> <body> <form name="f"> <select name="mySel" onChange="setVars(this.options[this.selectedIndex].value);"> <option value="-1" selected>Choose one</option> <option value="jon">Jon</option> <option value="sue">Susan</option> <option value="avery">Avery</option> </select> </form></body></html> Jona Justin 05-27-2003, 02:46 PM thanks that is exactly what i needed Jona 05-27-2003, 02:49 PM Uh.. You're welcome.. ;) Jona Justin 05-27-2003, 02:51 PM i am makeing a game useing html and javascript for school (algebra) so it is comeing out well thanks again Jona 05-27-2003, 02:52 PM Well, I don't know where the first "thanks" was, but you're welcome again. :D Jona webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |