$(document).ready(function(){ var counter = 1; $('button').click(function(){ var text = $('textarea#mytextarea').val(); $('#my-table').append('