【jQuery】テーブル Tr 行を動的に追加・削除・並び替え・値を取得する方法
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
<!-- 省略 --> | |
<script> | |
$(function(){ | |
// 省略 | |
$(document).on('click', '.remove', function() { | |
$(this).parents('tr').remove(); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment