Populate TextField based on DropDownList selection
Hello guys,
I want to fill a textfield based on a menu selection, for example the database has two fields agent_name and agent_number.
agent_name | agent_number
Scott | 1
Dave | 2
Matt | 3
I created a dropdown unsing Dreamweaver CS5, and I fill the values using a database (MySQL), there is a readonly text field called agent_number like the database field, basically I want to put the agent number based on the name selection, if you select Scott, this will autopopulate the number 1.
Can I do this automatically using dreamweaver? Or Do I need to do it using JavaScript?
Regards,
