SyntaxFix
Write A Post
Hire A Developer
Questions
Changing the value property does not change the defaultValue. In the code (retrieved with .html() or innerHTML) the value attribute will contain the defaultValue, not the value property.
defaultValue
.html()
innerHTML