Skip to content Skip to sidebar Skip to footer

Input Text Tag, After Typing Value Cannot Be Set

I have a text input correctly set in html. When this method is called pressing a button: this._searchInput.setAttribute('value', 'pippo'+Math.random()); console.log(this._searchInp

Solution 1:

You are setting the value attribute of the input, not setting the input's actual value.

This is the line of code you want:

this._searchInput.value= "pippo"+Math.random();

Post a Comment for "Input Text Tag, After Typing Value Cannot Be Set"