开发者

$().change or $().bind(change,function()) doesn't work on IE8, JQuery,Javascript [duplicate]

开发者 https://www.devze.com 2023-01-25 14:05 出处:网络
This question already has answers here: Getting jQuery to recognise .change() in IE 开发者_开发技巧
This question already has answers here: Getting jQuery to recognise .change() in IE 开发者_开发技巧 (20 answers) Closed 2 years ago.

Code Example:

    $(document).ready(function() {

txtchangefunction();

});

function txtchangefunction(

$(".textCssClass").change(function () {

....});

or $(".textCssClass").bind('change', function())

both work for Chrome etc. but not IE8.

Can everyone help on that?? no console error comes out. Thanks a lot.


I guess correct syntax is

function txtchangefunction(){
    $(".textCssClass").change(function () {
    //....
    });
}

or

$(".textCssClass").bind('change', function({}));

or

 $(".textCssClass").bind('change', funname);
0

精彩评论

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