Hi folks,
I'm in a foul mood this morning, and I'm trying to figure out this javascript thing. 
That's a 
bad combination for me. So, I decided to ask for help. Here's the basic script that 
works (with the hardcoded names of the select boxes). 
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function changeIt(select1, select2){
 var form = document.forms[0];
 if (form.a1best[1].selected) {
  form.a1when.selectedIndex = 1;}
 } 
//-->
</SCRIPT>

Basically, I want to be able to change the second select box if they choose the first 
item in the first select box. But, when I try use the variable names (select1, 
select2), it fails. Shouldn't I be able to call the script like so: 
onChange="changeIt(a1best, a1when)" and change the hardcoded references in the script 
above to select1 and select2 and have it work?

---------------------------------------------------------
Deanna Schneider
UWEX-Cooperative Extension
Interactive Media Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
                                

Reply via email to