473,408 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Reset dropdown to original value

I am looking for some help to reset a drop down list to its original
option value each time a selection is made.
My drop down is as follows:

<p><font face="Trebuchet MS"><b><font size="1">Select A Summary:</font></b> </font><font size="1">

<SELECT NAME="snPageName" SIZE="1" style="font-family: Trebuchet MS; font-size:8pt">
<option selected> --------
<OPTION VALUE="Win 2000 Pro with SP4.html"> Win 2000 Pro w/SP4
<OPTION VALUE="Win 2000 Adv Svr with SP4.html"> Win 2000 Adv Svr w/SP4
<OPTION VALUE="Win Server 2003 Std Ed.html"> Win Server 2003 Std Ed
<OPTION VALUE="Win Server 2003 Std Ed with SP1.html"> Win 2003 Std Ed w/SP1
<OPTION VALUE="Win Server 2003 Std Ed with SP2.html"> Win 2003 Std Ed w/SP2
<OPTION VALUE="WinXP Pro with SP1.html"> Win XP Pro w/SP1
<OPTION VALUE="WinXP Pro with SP2.html"> Win XP Pro w/SP2
</SELECT></font>&nbsp;

<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>

Thanks for your help !
May 23 '07 #1
2 7741
acoder
16,027 Expert Mod 8TB
Changed thread title.
May 23 '07 #2
acoder
16,027 Expert Mod 8TB
I don't know what benefit that would give, but you can use onchange to detect changes in the selection. Then the selectedIndex property can be set to 0 (original value).
May 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: mike | last post by:
Am I correct in assuming that when the starting value of a select list is re-selected, the onChange command does not execute? I need to have it execute when the original value is selected if...
2
by: tmeister | last post by:
I must be missing something obvious. I have a drop down list in asp.net and it populates the states from a database. When I view the source of the page I get the standard option tags with the...
1
by: Mad Scientist Jr | last post by:
I don't know how this is happening, but a dropdown control I have is resetting to the 2nd value on the list anytime a postback occurs. I have no initiation code outside of If Not (IsPostBack) ...
4
by: toufik | last post by:
Hi, In the ValueChanged event of a dateTimePicker control I've a condition, and I like to reset the initial value if teh condition is false Private Sub dateDebut_ValueChanged(ByVal sender As...
5
by: ApexData | last post by:
I have a bound textbox called txtMyBox with the current string value of "200". Once the user enters the textbox, and while the user is still in the textbox, I would like to check the changed value...
0
by: TBass | last post by:
I'm new to C#, and I have a question. For my program, I have 2 forms: one to allow the user to pick a property and another to allow the user to edit the property. They select the property they want...
3
by: John | last post by:
I have two dropdown lists that I have bound to a datatable and set the DataTextField and DataValueField for. Both lists show the values I expect from the database. However, when I need to access...
2
by: John Ti | last post by:
Okay, so I want to create a loop that continuously asks for a set of three numbers, squares them, adds them together, then compares them. I'm not really done, so I apologize if you don't really get...
1
by: bappadiit | last post by:
I am not sure that what I name it but here is the details of what I want to do: There will be two or more dropdown lists, suppose first one contains faculty name and the 2nd one is course name....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.