I can’t get it to work.
<div id="xrod"><input class="yrod"></div>
Why doesn’t this line of jquery not set the value of the cloned input to 5?
var row = $('#xrod').clone();
row.find('.yrod')
.val(5);
$('#xrod').append(row.html());
try this:
note that you dont need to append the html you can append a jquery object