My favorites | Sign in
Project Logo
                
Code license: MIT License
Show all Featured downloads:
asmselect-1.0.4a-beta.zip
People details
Project owners:
  ryancramerdesign

Introduction

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

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 by Ryan Cramer









Hosted by Google Code