Question : drop down list boxes onchange events

I have two php drop down list boxes with the following names:
"txtNme1"
"initsel1"

The "txtNme1" box has a list of names being populated from a database list
The "initsel1" box has a list of integers 1 to 60 , beind populated from a database list
 
I simply want to add an onchange event to the "txtNme1" such that any selection will set the "initsel1" box to a selection of 1

Answer : drop down list boxes onchange events

Now you are confusing us. Are there two select boxes or is there a "text box"??

Besides, in your previous code, there are two name attributes. Remove one of them.

Also, the code I provided in the first post assumes you only have one of "txtNme1" and "initsel1" on the page, as you did not state that there are multiple.

So, what is? Please explain in detail and provide generated code.
Random Solutions  
 
programming4us programming4us