List boxes

Results 1 to 2 of 2

Thread: List boxes

  1. #1
    Join Date
    Dec 1969

    Default List boxes

    I would very much appreciate it, if anyone could help me with the following.<BR><BR>Firstly, what is the correct syntax to set a value in an already generated dropdown list box to selected, without putting &#039selected&#039in the select statement.<BR>Secondly, what is the syntax to put a selected listbox value into a variable?

  2. #2
    Join Date
    Dec 1969

    Default RE: List boxes

    where lbObj is your Select box<BR><BR>1. document.lbObj.options[i].selected = true<BR><BR>2. if document.lbObj.options[i].selected then<BR> x = document.lbObj.options[i].value

Posting Permissions

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