What is the event when an <input>
element's value is changed via JavaScript code? For example:
$input.value = 12;
The input
event is not helping here because it's not the user who is changing the value.
When testing on Chrome, the change
event isn't fired. Maybe because the element didn't lose focus (it didn't gain focus, so it can't lose it)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…