View Full Version : Display details shown in combo

06-15-2004, 09:09 AM
Dear All

I have combo box which is populated with Client's name.
A user selects the name from combo.

I want to display the name selected in combo.

Please please help !

I am thankful to you for your graded support.

06-15-2004, 09:25 AM
How do you want it displayed? In a textbox, alert or what?
Can you post the related html codes?

06-15-2004, 10:03 AM
I want to display the name selected in a texy box

code to populate combo

<option selected value=0>Select Client</option>
after this i connect to datacase and get id and names
an populate the combo

<option value=".$pid.">".$name."</option>"

i have anotherr textbox
<input name="clname" type="text" class="text-b12" id="clname" readonly="">

i want to display the selected bane in this text box

thanking you in advance

06-15-2004, 10:44 AM
<select onchange="this.form.clname.value=this.options[this.selectedIndex].text">

To exclude the first item which says "Select Client"

<select onchange="if (this.selectedIndex>0) this.form.clname.value=this.options[this.selectedIndex].text;else this.form.clname.value=''">