Solved

Simple Question

Posted on 1998-07-20
2
138 Views
Last Modified: 2010-04-09
Hi Experts, I have created a list cob/Combo Box (Select and Option Tags)
  for a textfield, using VBScript, I can retrieve the data by
  document.FormName.elements(1).Value
 so for a combo/list box, how should I retrieve ?
Thanks
0
Comment
Question by:seahpc
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
Comment Utility
document.form_name.field_name.options[document.form_name.field_name.selectedIndex].value

Or if you use an 'onChange":

onChange="MyFunction(this.options[this.selectedIndex].value)"
0
 
LVL 2

Author Comment

by:seahpc
Comment Utility
I found the answer a bit different from yours :
document.form_name.field_name.optionsCdocument.form_name.field_name.selectedIndex).text
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now