function addTextbox(theBoxID){
theBox = document.getElementById(theBoxID).parentNode.parentNode;
theParent = theBox.parentNode;
newBox = theBox.cloneNode(true);
theParent.appendChild(newBox);
}
$('#id_of_button_copytextbox_invoker').click(function(){
var elclone = $('#id_of_element_to_clone').clone();
elclone.appendTo('#id_of_element_where_clone_gets_append');
});
function addTextbox(theBoxID){
theBox = document.getElementById(theBoxID).parentNode.parentNode;
theParent = theBox.parentNode;
newBox = theBox.cloneNode(true);
newBox.id = 'whateveridulike';
theParent.appendChild(newBox);
}
and you can use Math.random() to randomize$('yourclonedtextbox').val('');
newBox.value = "";
function addTextbox(theBoxID){
theBox = document.getElementById(th
theParent = theBox.parentNode;
newBox = theBox.CloneNode(true);
theParent.appendChild(newB
}