开发者

In Chrome, while selecting the selectbox the jquery event is not fired

开发者 https://www.devze.com 2023-02-18 08:40 出处:网络
$(\"#form_field_field_type\").live(开发者_如何学运维\"click\", function() { console.log(\"I reach over here\");
$("#form_field_field_type").live(开发者_如何学运维"click", function() {
    console.log("I reach over here");
});


It seems to work to me. This demo shows that clicking the <select> will clone the first one and prepend it to <body>.


I got the idea... You can fire the change event instead of the click event, so use the following code;

$("#form_field_field_type").live("change", function() { console.log("I reach over here"); });

I hope it will work it out!!!

0

精彩评论

暂无评论...
验证码 换一张
取 消