BrightNail
07-25-2002, 08:15 PM
hey all,
why isn't this working...for some reason, I figure this would be cake..but its giving me issues..
okay...passing a variable thru a function call -->
I need to "use" this variable as the "value" for a select box...the value EXISTS in the select box options...I need the select box to change to that 'variable value"...HOW damn....
function whatever (someVal){
document.cellular.adapter.options[document.cellular.adapter.selectedIndex].value=someVal;
}
why doesn't this work..I've tried sooo many combos..but nothing....I get "cellular is not defined" ..but it is..its the name of the form....and "adapter" is the name of the select box
just so you know..the select elements are generic and dno't possess a value within the option tag....so, is there a way to navigate them WIHTOUT this..
<select name=adapter>
<option>hello</option>
<option>byebye</option>
</select>
why isn't this working...for some reason, I figure this would be cake..but its giving me issues..
okay...passing a variable thru a function call -->
I need to "use" this variable as the "value" for a select box...the value EXISTS in the select box options...I need the select box to change to that 'variable value"...HOW damn....
function whatever (someVal){
document.cellular.adapter.options[document.cellular.adapter.selectedIndex].value=someVal;
}
why doesn't this work..I've tried sooo many combos..but nothing....I get "cellular is not defined" ..but it is..its the name of the form....and "adapter" is the name of the select box
just so you know..the select elements are generic and dno't possess a value within the option tag....so, is there a way to navigate them WIHTOUT this..
<select name=adapter>
<option>hello</option>
<option>byebye</option>
</select>