Created
October 18, 2013 01:47
-
-
Save springcome/7035249 to your computer and use it in GitHub Desktop.
.each, jquery
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
// 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