Hi,   There is a select list in my form. I want a new
form filed to be written after the selection is done
before the form submit:
<select name="country">
     <option value="uk">UK
     <option value="usa">USA
</select>


If user selects UK,  a new form will written under the
selection  field:
                <P>UK something: UK related form
fields
If user selects USA, another field will be writtten
under this selection: 
                <p> USA something.....USA related form
fields
-------------------------------------------
I am doing this using onChange , but does not work:


<select name="country" size="1" 
onChange="mycountry=select_country(this.form,this.options[this.selectedIndex].value)">
>
     <option value="uk">UK
     <option value="usa">USA
</select>


<SCRIPT LANGUAGE="JavaScript">
function select_country(my_form,my_select_value)
{
    var temp=0;
    temp=my_select_value;   
        return temp;
        }
</SCRIPT>
-------------------------------------
Also tried 
<select name="country" size="1"  
onChange="<cfset
mycountry=select_country(this.form,this.options[this.selectedIndex].value)">
>


How to pass this.options[this.selectedIndex].value to
Coldfusion variable before submit?


I want to do this after one option is selected in the
same form:
<cfif mycountry is "uk">
        field group 1
<cfelseif mycountry is "usa">
        filed group2
</cfif>


Thanks
Ins





__________________________________________________
Do You Yahoo!?
Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com/
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to