Skip to content

Instantly share code, notes, and snippets.

@bbuckley
Created September 25, 2013 00:33
Show Gist options
  • Save bbuckley/6693327 to your computer and use it in GitHub Desktop.
Save bbuckley/6693327 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
var searchIDs = $('input:checked').map(function(){
return $(this).val();
});
console.log(searchIDs.get());
$('input').on('change',function(){
console.log($(this).val());
var rchIDs = $('input:checked').map(function(){
return $(this).val();
});console.log(rchIDs.get());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment