Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes list box issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "list box issue" Watch "list box issue" New topic
Author

list box issue

zaxxon25
Ranch Hand

Joined: Feb 26, 2005
Posts: 35
I am facing a peculiar issue with list boxes. I have 2 list boxes A and B. I am selecting value from A and move it to B on click of button. Now the issue i am facing is that i want the selected value that has been moved from A to listbox B remain highlighted. how can this be done. I tried to search on google but could not find.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
....options[index].selected = true;

Eric
 
 
subject: list box issue
 
It's not a secret anymore!