Can someone tell me what the difference between the change
and input
events is?
I am using jQuery for adding them:
$('input[type="text"]').on('change', function() {
alert($(this).val());
})
It also works with input
instead of change
.
Maybe some difference in the event ordering relative to focus?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…