Skip to content

Instantly share code, notes, and snippets.

@springcome
Created October 18, 2013 01:47
Show Gist options
  • Save springcome/7035249 to your computer and use it in GitHub Desktop.
Save springcome/7035249 to your computer and use it in GitHub Desktop.
.each, jquery
// memberJob수 만큼 찾아 돌린다.
$(':input[name=memberJob]').each(function(){
console.log($(this).val());
});
// each index 사용
$(':input[name=memberJob]').each(function(index) {
console.log(index + ' : ' + $(this).val());
});
// 포함하는 selector 만큼 돌린다.
$(':input[name*=member]').each(function(){
console.log($(this).val());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment