Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Reset Selected Item in Select Option List

Reply
Thread Tools

Reset Selected Item in Select Option List

 
 
Dennis Marks
Guest
Posts: n/a
 
      09-08-2006
I have a page with 3 scrolling select option lists on the left. When an
item in one of the lists is selected information appears on the right.
You can go back and forth between lists to see the same or different
information.

There is one annoyance. If I select an item from the first list and then
select an item in the second list, the item in the first list remains
highlighted. If I then return to the first list and select the same item
nothing happens since there has not been a change in selection.

Is there a way to reset the selection in one list when an item in
another list is selected?

You can see the page at http://www.dcsi.net/~denmarks/amtrak_main.html

--
Dennis M. Marks

Disclaimer: The above is my opinion. I do not guarantee it. Be sure to
back up any files involved and use at your own risk. Batteries not
included. Not for internal use. Don't run with knives.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Reply With Quote
 
 
 
 
Nikita the Spider
Guest
Posts: n/a
 
      09-08-2006
In article <(E-Mail Removed)>,
Dennis Marks <(E-Mail Removed)> wrote:

> I have a page with 3 scrolling select option lists on the left. When an
> item in one of the lists is selected information appears on the right.
> You can go back and forth between lists to see the same or different
> information.
>
> There is one annoyance. If I select an item from the first list and then
> select an item in the second list, the item in the first list remains
> highlighted. If I then return to the first list and select the same item
> nothing happens since there has not been a change in selection.
>
> Is there a way to reset the selection in one list when an item in
> another list is selected?
>
> You can see the page at http://www.dcsi.net/~denmarks/amtrak_main.html


Have you had a look at the .selected or .selectedIndex properties of the
options list? No idea if this will work or if it is even good style, I
just spotted these properties on my Visibone Javascript card.

BTW you might want to consider alternate content (e.g. "Sorry, this page
requires JavaaScript") for users w/o Javascript. I run with it off and
it confused me that there was nothing clickable on the page.

Cheers

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
selected=selected in the center of option list John HTML 5 03-01-2010 08:30 PM
Reset Selected Item in Select Option List Dennis Marks Javascript 0 09-08-2006 05:31 PM
How to determine whether the user has already selected an option from a multi select list Patrick Olurotimi Ige ASP .Net 6 03-11-2005 10:39 AM
Dynamically update SELECTED option in option list Mark Kolber Javascript 4 01-01-2005 02:07 PM
Selection from One SELECT changes selected option of another SELECT? J. Hall HTML 2 04-21-2004 05:36 PM



Advertisments