rei
0
Q:

onchange javascript function call

document.getElementById("myInputID").addEventListener("change", function(){
	//This input has changed
   console.log('This Value is', this.value);
});
7
const handleChange = (event) => {
  console.log(event.target.value);
};

...
<input type="text" onChange={handleChange} />
1
<input type="text" id="username" onchange="usernameChanged">
0

New to Communities?

Join the community