0

Below code is not working in IE 9 or older versions. But it is working perfectly on Chrome. What could be wrong with this?

I am using Jquery 1.10.2.min.js

 $("[id$='txtNewPass2']").on("input", function () {
    if (myPlugin.metReq() == true && $("[id$='txtNewPass2']").val().length > 0) //return true or false
       $("#imgSubmit").removeAttr("disabled").css('opacity', 1);
    else
       $("#imgSubmit").attr("disabled", "disabled").css('opacity', 0.5);
 });

update:

I just saw .. My browser in Quirks mode. Does it effect anything?

enter image description here

James123
  • 11,184
  • 66
  • 189
  • 343

1 Answers1

0

This answer suggests to use .on('input propertychange') to support older browsers. Does that work for you? If you wanted to use a jquery event you could use .on('keyup')

Community
  • 1
  • 1
Clayton Leis
  • 1,288
  • 9
  • 20