2

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.

Dan An
  • 424
  • 9
  • 27

1 Answers1

2

I guess correct syntax is

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

or

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

or

 $(".textCssClass").bind('change', funname);
Chinmayee G
  • 7,947
  • 2
  • 31
  • 41