I have this issue with a .html()
i got a link, that helped 50% of the issue.
jquery html() does not return changed values
$("input").each(function(){
$(this).attr("value", $(this).val());
});
$("select").each(function(){
$(this).find('option[value='+$(this).val()+']').attr("selected", "selected");
});
It worked, but only returns the value of inputs. How do i do it for textareas, radio buttons, check box, i searched a lot. Couldn't find more than the link above.