Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Last active December 19, 2015 05:39
Show Gist options
  • Save coolaj86/5905472 to your computer and use it in GitHub Desktop.
Save coolaj86/5905472 to your computer and use it in GitHub Desktop.
<html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="pplpkr.js"></script>
<body>
<span>Groups: </span>
<input type="text" class="js-groups" />
</body>
</html>
function main() {
"use strict";
var $ = window.jQuery
;
function reRun(el) {
console.log('the user said', $(this).val());
}
$('body').on('change', '.js-groups', reRun)
}
$(main);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment