Lee,

You might find it easier to create the hidden field using CF.  Make it the
first field for ease. I'm assuming you want to change the name of the field
when the drop-down is changed.  You can do this with:

document.forms[0].elements[0].name = 'What_you_want_it_to_be';

You can then set the value as you normally would.

Submitting the form can be done with:

document.forms[0].submit();

That should do it.

Thanks,

Sam

----- Original Message -----
From: "Lee Fuller" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 2:35 PM
Subject: OT: Ok.. JS gurus...


> Since we seem to be on the subject, I can't get anything to work, and
> thought someone (prolly Dave <grin>) might have an answer for this...
>
> Need to include a drop-down in a form that, when changed (onchange),
> will add a hidden field to the form, and submit it immediately.
>
> Send me somewhere to find it.. That's ok! ;)  Just need to figure it
> out.
>
> TTAIA
>
> Lee
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to