Skip to content

Instantly share code, notes, and snippets.

@fieldoffice
Created October 3, 2014 12:01
Show Gist options
  • Save fieldoffice/dc1a85c9d62065f6f63a to your computer and use it in GitHub Desktop.
Save fieldoffice/dc1a85c9d62065f6f63a to your computer and use it in GitHub Desktop.
Using Select2 or Chosen with DataTables
/* SELECT 2 */
'fnInitComplete': function(oSettings, json) {
$('select').select2({
minimumResultsForSearch: -1
});
}
/* CHOSEN 2 */
'fnInitComplete': function(oSettings, json) {
$('select').chosen({
disable_search_threshold: 10
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment