title: jQuery doesn't work in IE but it works in Mozilla
body: <p>Please help me my jQuery script doesn't work ie8 but works in FF please verify my code is there any error? </p>
  
  <pre><code>&lt;div class="check_out_button" id="checkout" style="cursor:pointer"&gt;&lt;?=translate('Check Out',$lang)?&gt;&lt;/div&gt;
  
  $(document).ready(function(){
      $('#checkout').click(function(){
  
      var amount = $('#dnt_amount').val();
      var flag = 0;
  
      if(amount == "")
      {
          $('#amounterr').css("display","block");;
          flag++;
      }
  
      if(flag == 0)
      {
          var res = $("#form1").serialize();
  
          $.ajax({  
                      type: "POST",  
                      url: "&lt;?=site_url('profile/checkout')?&gt;",  
                      data: res,
  
                      success: function(msg)
                          {
                              $('#amount').val(amount);
                  $('#amt').val(amount);
                  $('#amounterr').css("display","none");
                  $("#fundraiser").css("display","none");
                  $("#fundraiser1").css("display","block");
                  $("#about").css("display","none");
                          }  
                      }); 
              }           
          });
      });
  </code></pre>