Skip to content

Instantly share code, notes, and snippets.

@thewarpaint
Last active December 25, 2015 17:49
Show Gist options
  • Save thewarpaint/7015964 to your computer and use it in GitHub Desktop.
Save thewarpaint/7015964 to your computer and use it in GitHub Desktop.
select.js
// A
var selectors = ['select.entityFilter', 'select.dateFilterFrom', 'select.dateFilterTo'];
$(selectors.join(',')).on('change', function() { oTable.fnDraw() } );
// B
$('select.entityFilter, select.dateFilterFrom, select.dateFilterTo').on('change', function() { oTable.fnDraw() } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment