0
Why onchange dom évent does not fire ?
I tried in this <input type="text" value="" onchange="alert('fired event !') /> in the PlayGround and when i run the code, the onchange event does not fire, can anyone tell me the reason ?
5 Antworten
+ 1
onchange its fired when you change the value and your element lose the focus (try to click outside the element after change his value). For get immediate result, use "oninput"
P.S. Dont forget to add " for close onchange value because in your posted code its missing
+ 1
Ok i try oninput
+ 1
Thanks, oninput works well
0
Please insert your code here,so we can check it out.
0
👍👍👍