The Select Expander

Download

Download the files (rar) - the files include the css, images and script files you need to link to.

History

November 18th 2008

Updated to preserve autopostbacks with asp.net dropdownlists. For now this simply checks to see if a postback function has been added to the onchange of the original dropdownlist then creates a duplicate function for the select expander. This is not necessary for the link list and would render the multiple select worthless so just use with the basic dropdownlist.

November 5th 2008

Added the facility to create a checkbox drop down with a multiple="multiple" attribute.

Demos

1. A standard select with some long options. (<select class="selectexpander">)

2. a standard select configured to be a list of links (<select class="selectexpander linklist">)

2. a standard select with multiple="multiple configured to be a checkbox list (<select class="selectexpander checkboxlist">)

4. An asp.net dropdownlist with autopostback set to true plus cssclass="selectexpander" - autopostback is preserved and selection recalled on postback