I thought this would be an easy one but I cant get it to work.
I want a text input to change value when an option in a select box is changed.
I am looping over my options in the select with database information. Do I
need to use something other then onChange?
<script>
function displayStockLevels(ID) {
document.frmDryOffset.stockLevels.value = ID;
}
</script>
<input type="text" id="stockLevels" />
<select name="NEW_Plate_to_make">
<cfloop query="getPlates">
<option
onchange="displayStockLevels(#getPlates.ID#);">#getPlates.Name#</option>
</cfloop>
</select>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279860
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4