简体   繁体   中英

jQuery change doesn't fire in IE from expanded select

http://jsfiddle.net/e3ZJa/9/

2 small tests:

1) select select (but don't expand it), press down and press enter, you will see 1 and 2 in all browsers (let me know if I'm wrong, I tested in IE and FF)

2) expand select, select option by pressing up and down, and press enter, you will see only 2 in IE. Why? I want to see 1 2 what I should modify to get it work? I need to launch one function on select change and another one when user presses enter.

UPD: About jQuery version we using 1.4.2 in our project, looks like we need to update it, but we will need to retest all project

This is how 1.4.4 the version you are using worked, you see the 2, if you again click the select (not selecting anything) by clicking it, you see the keyup fired (the 1 in your test case). This is fired on the focus change.

IF you update to jQuery 1.7.1, you will see both events fire as you desire.

似乎使用Jquery 1.5.2及更高版本在IE7中正常工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM