vikaspa
06-15-2004, 08: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.
glenngv
06-15-2004, 08:25 AM
How do you want it displayed? In a textbox, alert or what?
Can you post the related html codes?
vikaspa
06-15-2004, 09: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
glenngv
06-15-2004, 09: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=''">