dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Setting value of <select>

  1. #1
    Join Date
    Jun 2005
    Posts
    208

    Setting value of <select>

    Hey!

    I have another concern.

    I have something like this:

    <select id="itemType">
    <option value="blank"></option>
    <option value="Demand">Demand</option>
    <option value="Concept">Concept</option>
    </select>

    When a page that has this code loads it display nothing in this combo box (drop
    down menu). In my onLoad function I have a variable which has
    Demand or Concept. So, if that variable is Demand I want my
    drop down menu display Demand and Concept if the variable Concept.
    The question is how to set drop down menu item to the one I want?
    Thanks!

    I hope it is not very confusing.

  2. #2
    Join Date
    Jun 2005
    Posts
    208
    Nevermind, I figure that out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles