Skip to main content
May 5, 2006
Question

populate field.

  • May 5, 2006
  • 2 replies
  • 309 views
is there any way where if i select an option (see below) and that when it is selected it will put the price of the product below it.... the list would have eg 4 items if not more. so when i select item 1 it will say £1.99 in the location <td> ****PRICE GOES HERE****</td> below...... I would like to do this just in coldfusion and not anything else. (javascript) etc......

<tr>
<td></td>
<td><b>Product:</b></td>
<td><select size="1" name="test1"><cfoutput query="getproducts"><option value="#getproducts.Name#">#getproducts.name#</option></cfoutput></select></td>
<td></td>
<td></td>
</tr>
<cfoutput>
<tr>
<td></td>
<td><b>Price</b></td>
<td> ****PRICE GOES HERE****</td>
<td></td>
<td></td>
</tr>
This topic has been closed for replies.

2 replies

Inspiring
May 5, 2006
If the select is part of a form that contains other fields, attempting to do this with cold fusion will be incredibly complicated. Why don't you want to use js?
May 5, 2006
ColdFusion runs on the server, not the user's computer. You would have to reload the page from the server, with the price in the table cell, if you don't want to use a client-side script (e.g., JavaScript)