[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Simple Question

Posted on 1998-07-20
2
Medium Priority
?
185 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

649 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