Using jQuery to copy some content from div to input value - value displays nicely but there`s no value in html
The value attribute for text inputs determine the initial value, it does not change when the user inputs something in the field or when it's changed by JavaScript.

If you are experience some error, it's most likely something else that's the problem.