dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Combobox text change

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    228

    Combobox text change

    Hello,

    I have the following code:

    Code:
    <select id="myList">
       <option value="option1">Bob</option>
       <option value="option2">Harry</option>
       <option value="option3">Tom</option>
       <option value="option4">Jack</option>
     </select>
    I want to be able to select a index/option value from the select tag such as Tom from the list and be able to change it using javascript.

    Anyone able to help?

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: Combobox text change

    This is very basic stuff. Perhaps you should go through more tutorials at W3Schools.

    http://www.w3schools.com/jsref/prop_option_selected.asp
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)