Append input text field with value of a div
$(this).append('<input type="text" value=' + $('#div1').val() + '>');
don't forget to concatonate with +
Also, this assumes $(this) is an actual object.
$(this).append('<input type="text" value='+ $('#div1').html()+ '>');
Don't use HTML strings for everything!
$(this).append(
$('<input>', {
type: 'text',
val: $('#div1').text()
})
);