Query in html <select> component?

  • Thread starter Thread starter Bhaskar V
  • Start date Start date
B

Bhaskar V

Guest
Hi,

I'm having a problem with <select > list in html (for multiple selections). I have around 100+ values that get populated in this list box in my jsp. But this list would display only 5 elements and we have to use the scroll bar to view remaining items.

I randomly scroll up and down in the list and select few say 34, 51 and 69th items and fire my search query. When the search result gets published I want to see the 34th item of the selected items scrolled up and shown in the list box. I should not sort and display the list.

It has to be only in the same sequence as it was rendered first. Means, if I wish to go to first element then I should move up the slider of the right scroll bar. Hope this clarifies.

Please suggest.

Thanks,
B
 
Each item in a Select list option element has a 'selected' attribute, if present then the item appears selected when the list displays. If multiple items have the 'elected' attribute, the first one in the list is displayed.
 
Back
Top