Created
October 30, 2015 10:36
-
-
Save palicko/d9466ffa77df33b15265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.faq-filter').submit(function(event){ | |
// get values and join them with comma | |
var vals = $('input[type="checkbox"]:checked').map( | |
function(i){ | |
return $(this).val(); | |
}).get().join(','); | |
// push values to hidden field | |
$('#faq-cats').val(vals); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment