search for: payorlist

Displaying 1 result from an estimated 1 matches for "payorlist".

Did you mean: pairlist
2008 Mar 13
3
scrolling in a <select multiple="multiple"> list
...storing the previous selections in an array whose index corresponds with the options list. After a new selection is made (which automatically de-selects the other options) I loop through the list and restore the selected attribute based on the settings saved in the array like this: $$(''#payorList option'').each(function(opt){ opt.selected = payorOptions[opt.index]; // payorOptions is the array }); An unintended consequence is that the select list is scrolled to the bottom as I iterate through each one, forcing the user to manually scroll back up to sele...