How to fires onClick event before onChange (even if the value has changed)?
问题 Hello everyone and sorry for my english. Following this jdfiddle, I have a problem I don't understand. First I change the value of the input, then I click on the button and what I expected to see is "click" but I see "change" meaning onclick is called after onchange . <input type="text" onChange="alert('change')" /> <button type="button" onClick="alert('click');">Click!</button> I found on this post that it's because of chrome which fires onchange event before the onclick event. But I don't