make the value as string on keyup in javascript code example
Example: html onkeyup set value
<input type="text" onkeyup="this.setAttribute('value', this.value);" value="">
<input type="text" onkeyup="this.setAttribute('value', this.value);" value="">