xxxxxxxxxx
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script>
$(function() {
$("#clickMe").on('click', function() {
var menu = "<label>Name</label><input type='text' name='name[]'>";
$(menu).appendTo("#myForm");
});
});
</script>
</head>
<body>
<button id="clickMe">Click me to add column</button>
<form id="myForm">
</form>
</body>
</html>
https://code.jquery.com/jquery-2.1.4.js