My favorites | Sign in
Logo
                
Activity: Medium
Code license:
MIT License

Introduction

A progressive enhancement to <select multiple> form elements. It provides a simpler alternative with the following advantages:

Forks of asmSelect

Requirements

Usage

Include jquery, asmSelect, and css in document head:

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.asmselect.js"></script>
<link rel="stylesheet" type="text/css" href="jquery.asmselect.css" />

Use a jQuery selector in your document ready function:

$(document).ready(function() {
    $("select[multiple]").asmSelect();
}); 

If desired, you can specify options when you call the plugin:

$(document).ready(function() {
    $("select[multiple]").asmSelect({
        sortable: true,
        animate: true,
        addItemTarget: 'top'
    });
});

To optionally set a label inside the select, set the title attribute:

<select name="cities" multiple="multiple" title="Please select a city">
...
</select>

Options

The following options may be specified using the format in the example directly above this section.

Primary Options

Text Labels

Modifiable CSS Classes

Known Issues

TODO

Please Note

Copyright 2008, 2009, 2010 by Ryan Cramer









Powered by Google Project Hosting