Adrian,
Preferably within CF . . . Following is the snippet:
*************************************************************
<td valign="top">
<cfselect name="FAttending" style="background-color:FFFF99">
<option value="1">1
<option value="2">2
</cfselect>
</td>
<td width="5"></td>
<td valign="top" class="style5">@</td>
<td valign="top" class="style5"> $545 ea.</td>
<td width="5"></td>
<td valign="top"><span class="style5">$</span>
<cfinput name="STF" type="text" size="5" style="background-color:FFFF99">
</td>
***************************************************************************
In a nutshell. Just need to take whatever value is in the select, and multiply
it x 545 to populate the text box.
John
>With JavaScript or CF?
>
>JS
>
>yourSelect = document.getElementById("yourSelect");
>yourTextfield = document.getElementById("yourTextfield");
>
>yourTextfield.value = yourSelect.options[yourSelect.selectedIndex].value;
>
>CF
>
><input type="text" value="#FORM.yourSelect#" />
>
>If neither of those, can you be more specific.
>
>Adrian
>
>-----Original Message-----
>From: John Eubanks [mailto:[EMAIL PROTECTED]
>Sent: 12 April 2007 15:40
>To: CF-Newbie
>Subject: Select Box
>
>
>Anybody know of a way to populate a text box based off the selection from a
>select box?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2696
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15