> I have a select box and a text box. In this case, the select is > queried from a database. What I would like to see happen, is when > someone clicks on the content of the select box, the text box values > change. The app. I am working is simple. It pulls back a list of > address (select box). If you change an option, the text boxes below > it change with the coresponding data (city, state, zip). > > Any help would be greatly appreciated. If need be, feel free to write > to me directly: [EMAIL PROTECTED]
Try this: <select onChange="this.form.textFieldName.value=this[this.selectedIndex].value"> </select> here's an example: <form> <select onChange="this.form.state.value=this[this.selectedIndex].value"> <option value="AL">Alabama <option value="AK">Alaska <option value="AZ">Arizona <option value="AR">Arkansas <option value="CA">California <option value="CO">Colorado <option value="CT">Connecticut <option value="DE">Delaware <option value="FL">Florida </select> <input type="text" size="2" name="state"> </form> hth, larry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:242823 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
