TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Programming > JavaScript
JavaScript Need help with the (primarily) client-side programming language? This is the place. Includes discussion on AJAX (Asynchronous JavaScript and XML).

Reply
 
Thread Tools Display Modes
Old May 1st, 2010, 01:18 PM   #1 (permalink)
xtommyguntim
Guest
 
Posts: n/a
Default How do you reference a value in a html drop down menu (the <select><option>

menu) in Javascript? I have a drop down list with the numbers 0 to 10 available to select, and when the user clicks a button at the bottom of the form, i want to multiply that number they selected by, lets say 10, what would i call the number selected from the list in Javascript code?
I'm quite familiar with vb, and in vb i used "listname".text to get the value in the selected index...
I've just started using Javascript because the site im working on does not use asp, and the server it is on is a php server, not a microsoft server.
Your help will be appreciated, and code examples would be awesome...
Thanks
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
<select><option>, drop, html, menu, reference


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I make a drop down list using html css code? Timmy K HTML & CSS 0 April 23rd, 2010 01:24 PM
Is there anyway to autofill a drop down menu in Mozilla Firefox? SheetMusic Browsers 0 April 16th, 2010 06:07 PM
How would I do this in PHP? if statement and drop down menu? ?pathtotake? PHP 0 April 16th, 2010 01:26 PM
javascript drop menu links showing over frames? Vincent JavaScript 0 April 8th, 2010 04:49 AM
HTML and Javascript drop down menu help? David P JavaScript 0 April 6th, 2010 11:29 AM

 
Forum Stats
Members: 14,373
Threads: 20,382
Posts: 27,863
Total Online: 63

Newest Member: nnpccpecyvh

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 08:23 PM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO