HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 8th, 2004, 09:19 AM
Yawgmoth Yawgmoth is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 8 Yawgmoth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dropdown menus that have values

Here's my code:

<form name="doublecombo">
<select name=
"example" size="1" onChange="redirect(this.options.selectedIndex)">
<option>Standard</option>
<option>Level 2 Upgrade</option>
<option>Level 3 Upgrade</option>
<option>Level 4 Upgrade</option>
<option>Level 5 Upgrade</option>
<option>Level 6 Upgrade</option>
<option>Level 7 Upgrade</option>
<option>Level 8 Upgrade</option>
</select>


How can I assign variables to the level upgrades and put a text box to the right of the dropdown menus that will print the assigned value?

Reply With Quote
  #2  
Old July 8th, 2004, 10:06 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,942 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 9 h 49 m 28 sec
Reputation Power: 62
Hi

Code:
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Combo box example</title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>

<body>
<form name="doublecombo">
<select name="example" size="1" onChange="document.doublecombo.thevalue.value=this.value;">
<option value="Standard">Standard</option>
<option value="Level 2 Upgrade">Level 2 Upgrade</option>
<option value="Level 3 Upgrade">Level 3 Upgrade</option>
<option value="Level 4 Upgrade">Level 4 Upgrade</option>
<option value="Level 5 Upgrade">Level 5 Upgrade</option>
<option value="Level 6 Upgrade">Level 6 Upgrade</option>
<option value="Level 7 Upgrade">Level 7 Upgrade</option>
<option value="Level 8 Upgrade">Level 8 Upgrade</option>
</select>
<input type="text" name="thevalue">
</body>
</html>



MK

Reply With Quote
  #3  
Old July 8th, 2004, 11:00 AM
Yawgmoth Yawgmoth is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 8 Yawgmoth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thx.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Dropdown menus that have values


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway