Created
May 1, 2017 17:14
-
-
Save rsandrade/e3081b24f4adf0ae5e82c5f5228a81cf to your computer and use it in GitHub Desktop.
Pegar todos os value de checkboxes em uma string com os valores em sequencia
This file contains hidden or 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
$('#configSalvarGrupo').click(function(){ | |
var checkedValues = $('input:checkbox:checked').map(function() { | |
return this.value; | |
}).get(); | |
console.log('Valor: '+checkedValues); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment