I have a simple html multi select dropdown:
<select id="transactionType" multiple="multiple" size="10"> <option value="ALLOC">ALLOC</option> <option value="LOAD1">LOAD1</option> <option value="LOAD2">LOAD2</option> </select>
I want to continue using this list in case javascript is disabled, but with javaScript I would like to display the list as a drop-down list with multiple choices. That is, it shows only one item in the list until it clicks, and then it expands to display x items and provide scrolling where I can select multiple items as you would expect by holding shift or ctrl.
The new jQuery was looking for http://jquery.com/ but has not yet found what I need.
Change users of Struts2, the selected answer will be encoded using [], this causes problems in struts2, however it is very simple. Just open jquery.multiSelect.js and find "[]" and delete one instance that is used in string concatenation. I also use jQuery 1.4.4, not 1.3.2, which comes with it, and everything works fine.
jquery jquery-ui jquery-plugins multi-select
Quaternion Jan 20 '11 at 22:29 2011-01-20 22:29
source share