Skip to content

Instantly share code, notes, and snippets.

@codingwithsara

codingwithsara/index.html Secret

Created Nov 10, 2018
Embed
What would you like to do?
【jQuery】テーブル Tr 行を動的に追加・削除・並び替え・値を取得する方法
<!-- 省略 -->
<script>
$(function(){
// 省略
$('#getValues').click(function(){
var values = [];
$('input[name="name"]').each(function(i, elem){
values.push($(elem).val());
});
alert(values.join(', '));
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.