< button > always submits (thus going to the server and refreshing the page). This will (ofcourse) remove your added element.
To solve this, return false from the click handler like this:
$(document).ready(function () {
$('#clonePersonalInfo').click(function () {
$('div.personalInfo').after(function () {
return $(this).clone();
});
return false;
});
});
If this helps, please mark this as an answer. Thank you.