Jquery – IE 10 problems with jQuery

internet-explorer-10jquery

I have some problems with jQuery in IE10.
Some scripts doesn't work in that version of IE.
In others browser (also in oldest IE) everything works fine.
Code of one og them below.

jQuery.fn.firma_wpis = function(form,wymag){
  var dur = 350;
  var wymag='1';
  if(this.attr('checked')==true){
    $("#wpis_firma").show(dur);
  }

I also added sample code to see if it works, but unfortunately not

$(document).ready(function() {
  alert("Works fine");
}); 

This is simple hide show event when user click on the checkbox.
In IE10 Developers Tools I found this error:
SCRIPT438: Object does not support property or method

Best Solution

Try this condition:

this.is(':checked')

I.e.:

jQuery.fn.firma_wpis = function(form,wymag){
  var dur = 350;
  var wymag='1';
  if(this.is(':checked')){
    $("#wpis_firma").show(dur);
  }