Why not work on a cloned object?
2 answers
common mistake
var row = $('#xrod').clone(); row.find('.yrod').val(5); // you think you change the value of the cloned object but you don't $('#xrod').append(row.html()); you are missing a link
var row = $('#xrod').clone(); row = row.find('.yrod') .val(5); $('#xrod').append(row); also you do not need to add .html() to the string.
+3