Forum Moderators: open
What I want is to use a dropdown menu. It will have data inside and when the user selects the data, it will fill the textfield below with data from database. And the value of the dropdown menu would be selected on the one the user clicks...
Like when you register for Hotmail and the part where you have to select your country... It will bring you to another page with details more connected to your country...
<option value="1" selected>1</option>
If you're doing it with Javascript,
<form name="myForm">
<select name="whatever"> ....
document.myForm.whatever.selectedIndex = [integer]
Remember select arrays are zero-based, top one is selectedIndex zero.