Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    Mumbai,India
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display details shown in combo

    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.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    How do you want it displayed? In a textbox, alert or what?
    Can you post the related html codes?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    Mumbai,India
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i want Dsplay in text box

    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

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    <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=''">
    Last edited by glenngv; 06-15-2004 at 09:47 AM.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •