I recently created a very simple jQuerUI plugin that mimics multi-segment functionality by switching the .active class to elements.
$(selector).multiselect("selection")
returns an array of indices of children that have the .active class.
Scrolling and other styles are done using the appropriate CSS.
source share