Your jquery does not deal with anything in that div. The div has no id or class to be dealt with separate from any other div on the page. I think this is not the right div.
Maybe you want this:
Code:
$(document).ready(function(){
$('#btn').click(function(){
var x = $('#test').html();
$("#ta").html(x);
});
});
it's not working correctly becuase your html is way off. youve got the html for an entire html docuiment inside of a div, your confusing your script. \
( it's actually doing what you are telling it to do based on you r html in the jsbin example)
- side note, you are using the html5 doc type, but you are using tags like FONT that were deprecated years ago.
All tables in HTML have at least one <tbody> container in them whether you specify the tag or not. When JavaScript accesses the table it sees the tbody and any other optional tags that you left out that HTML added in for you.