Skip to content
Niels den Otter edited this page May 18, 2013 · 5 revisions

##Options

  • TODO

##Methods

  • TODO

##Important to know

  • Classes of OPTION's will be copied to LI
  • You can add settings to the OPTION like: data-settings='{alwaysvisible : true}'
    • alwaysvisible is used when you use the useManualInputAsFilter=true property

##jQuery Validate usage If you want to validate it with jQuery validate you can add the following rule to the validation:

jQuery.validator.addMethod("fancyformSelect", function(value, element, param) {
    $(element).nextAll("ul:first")[element.selectedIndex ? "removeClass" : "addClass"]("error");
    return element.selectedIndex;
});

And use it like:

$("form").validate({
    rules : {
        customSelect : "fancyformSelect"
    }
});
Clone this wiki locally