?
Solved

Simple Question

Posted on 1998-07-20
2
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 150 total points
ID: 1844754
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
ID: 1844755
I found the answer a bit different from yours :
document.form_name.field_name.optionsCdocument.form_name.field_name.selectedIndex).text
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

800 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