Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
Free

MIT license

The MIT license is an
open-source license.
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

mooltiSelect

mooltiSelect
Developed by Marcelo Origoni, Released Feb 6, 2011

mooltiSelect is a library that will allow you to create a multiselect combo box, from any list in you html code it can be an ul, an ol, a series of divs or spans. anything can be converted to a multiselect combo box. You can even select the maximum options the user will be able to select, and they won't need to use ctrl + click to select more than 1 option.

JavaScript

Tags: combobox , contest2011 , forms , multiselect

What's mooltiselect?

mooltiSelect is a library that will allow you to create a multiselect combo box, from any list in your html code it can be an

  •   , a series of divs or spans - anything can be converted to a multiselect combo box.
    You can even select the maximum options the user will be able to select, and they won't need to use ctrl + click to select more than 1 option.  

    Which versions of mootools is it compatible with?

    mooltiselect is compatible with mootools 1.2 and 1.3.

    How to use it?

    You'll need a few thing to use it. First of all the mootools Core library and the Fx.Sort part of the moootools More Library. both files are included in the download, along with the mooltiSelect file.
    you need to include the 3 files in betweend the and of your html code. and don't forget the style sheet.
    then jsut add to your domready event, the call to mooltiSelect, something like:

    window.addEvent('domready', function(){  
    new mooltiselect([options]);  
    

    Which Properties you can pass to mooltiSelect, and which are the default values?

    This are the available options:

    list: 'list',  
    options: 'option',  
    selectedClass: 'selected',  
    name: 'listBox',  
    sort: false,  
    drag: true,  
    maximum: 0,  
    errorMessage: 'You already selected the maximum of %MAX% items',  
    onMaxSelected: ''  
    

    list, is the id of the container element, default value is list.
    options, is the class of the elements you want to convert to a multiselect, defaults to option.
    selectedClass, is the class mooltiSelect gives to the selected items, so the user can know which options (s)he selected, default selected.
    name, is the name that will assign to the input elements, that will be send in the form, defaults to listBox.
    sort, it's a boolean, and enables/disables the ability to sort the options, defaults to false.
    drag, it's a boolean, enables/disables the multiple selection by dragging the mouse, defaults to true.
    maximum, it's the limit of options the user can select, 0 means no limit and it's also de default value. errorMessage The error message displayed when the maximum options are selected, it accept a %MAX% wildcard, that will be replaced with the number of options. defaults to 'You already selected the maximum of %MAX% items' onMaxSelected Function to be executed once the maximum number of options is selected, if no function is passed, the default behaivour is to alert the error message. Defaults to ''

    is there any special markup I need to know?

    Yes there is, it's not a big thing, bur you need to place a rel attribute in your option elements, that's where mooltiSelect gets the value for each option.

    Why if I select sortables, the options are not selected?

    In oreder to select any option, while sortable enable, you need to doubleclick, sin the click event, is associated with the sorting. , an

User Reviews

No reviews have been submitted yet.

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.