rabit
06-03-2009, 05:18 PM
edit: figured out the first part of this, still need help in second post.
I am a complete novice with JavaScript and haven't even attempted anything in about a year. What I am trying I know I used to be able to do I just can not remember anything about it.
I am just trying to make 2 drop downs. When you choose a one of the options, I want that option's value to appear in the text area below, then I want the text area to go to a new line for the next drop down's value.
I apologize for being so noobish here. I am sure it will begin to come back to me the more I read. Its just easier for me to learn if I can see an example. I have done as much as I can remember. I am pretty sure i need to set IDs for my drop down form tag, but I can't remember for sure. Any help would be greatly appreciated.
<form>
<p><select size="1" name="vote1">
<option selected>-</option>
<option value="Vote1-1">1</option>
<option value="Vote1-2">2</option>
<option value="Vote1-3">3</option>
<option value="Vote1-4">4</option>
<option value="Vote1-5">5</option>
</select></p>
<p><select size="1" name="vote1">
<option selected>-</option>
<option value="Vote2-1">1</option>
<option value="Vote2-2">2</option>
<option value="Vote2-3">3</option>
<option value="Vote2-4">4</option>
<option value="Vote2-5">5</option>
</select></p>
<p><textarea rows="7" name="copy" cols="30"></textarea></p>
</form>
I am a complete novice with JavaScript and haven't even attempted anything in about a year. What I am trying I know I used to be able to do I just can not remember anything about it.
I am just trying to make 2 drop downs. When you choose a one of the options, I want that option's value to appear in the text area below, then I want the text area to go to a new line for the next drop down's value.
I apologize for being so noobish here. I am sure it will begin to come back to me the more I read. Its just easier for me to learn if I can see an example. I have done as much as I can remember. I am pretty sure i need to set IDs for my drop down form tag, but I can't remember for sure. Any help would be greatly appreciated.
<form>
<p><select size="1" name="vote1">
<option selected>-</option>
<option value="Vote1-1">1</option>
<option value="Vote1-2">2</option>
<option value="Vote1-3">3</option>
<option value="Vote1-4">4</option>
<option value="Vote1-5">5</option>
</select></p>
<p><select size="1" name="vote1">
<option selected>-</option>
<option value="Vote2-1">1</option>
<option value="Vote2-2">2</option>
<option value="Vote2-3">3</option>
<option value="Vote2-4">4</option>
<option value="Vote2-5">5</option>
</select></p>
<p><textarea rows="7" name="copy" cols="30"></textarea></p>
</form>