-asx-
08-17-2005, 10:39 PM
Does anybody know how to pass the value of a combo box selection into a variable in a function? Like, if this is your form, how do you put the value into the variable "selection" so that you can manipulate/process it?? I know this is easy but my brain is apparently working in slow motion right now!
<form>
<select onChange="sort()">
<option value="yankees">Show Yankees</option>
<option value="tigers">Show Tigers</option>
</select>
</form>
<script type="text/javascript">
function sort() {
var selection = ???
-some processing-
}
</script>
Any help is greatly appreciated!!
<form>
<select onChange="sort()">
<option value="yankees">Show Yankees</option>
<option value="tigers">Show Tigers</option>
</select>
</form>
<script type="text/javascript">
function sort() {
var selection = ???
-some processing-
}
</script>
Any help is greatly appreciated!!