Option List box

Results 1 to 2 of 2

Thread: Option List box

  1. #1
    Join Date
    Dec 1969

    Default Option List box

    is there anyway i can store an item selected from a drop-down list box in a variable as i am selecting it? so its like by using onChange() method.

  2. #2
    Join Date
    Dec 1969

    Default Not ASP, not advanced, but what the heck...

    &nbsp;<BR>&#060;SELECT ... onChange="this.form.textField.value=this.options[this.selectedIndex];"&#062;<BR><BR>Be careful: If you user never selects anything from the drop down list, you get nothing in the text field, do you? Or if the user goes to the drop down list and selects the first item, after all, that&#039;s not considered a change. You could use onBlur instead, which is what I tend to do.<BR><BR>

Posting Permissions

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