title: IE 11 not working with JQuery
body: <p>m working with Asp.Net Web Services and Json-JQuery. My code is simple: 
  Load aspx page. Click a button and call a web service. </p>
  
  <p>It works perfectly in Chrome but doesnt in IE11. Even if i execute in browser console a simple JQuery script like $(btnguardar) ie returns undefined, chrome instead returns the button.</p>
  
  <p>Is there a solution for this?</p>
  
  <p>Here is my code: 
  (aspx file)</p>
  
  <pre><code>&lt;%@ Page Title="" Language="VB" MasterPageFile="~/wprincipal.master" AutoEventWireup="false" CodeFile="winicio.aspx.vb" Inherits="winicio" Culture="es-MX" ViewStateMode="Disabled" ClientIDMode="Static" %&gt;
  &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt;
  &lt;script src="Script/jquery-1.4.1.js" type="text/javascript" language="javascript"&gt;&lt;/script&gt;
  &lt;style type="text/css"&gt;
          .style1
      {
          width: 159px;
      }
  &lt;/style&gt;&lt;/asp:Content&gt;&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;
  &lt;ajaxToolkit:ToolkitScriptManager ID="tsm" runat="server" EnableScriptLocalization="true" EnableScriptGlobalization="true"&gt;&lt;/ajaxToolkit:ToolkitScriptManager&gt;
  &lt;table style="width:100%;"&gt;
      &lt;tr&gt;
          &lt;td class="style1"&gt;
  
            Nombre &lt;/td&gt;
          &lt;td&gt;
              &lt;asp:TextBox ID="txtnombre" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td class="style1"&gt;
  
             Apellido &lt;/td&gt;
          &lt;td&gt;
             &lt;asp:TextBox ID="Txtapellido" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td class="style1"&gt;
  
             Estado &lt;/td&gt;
          &lt;td&gt;
              &lt;asp:DropDownList ID="DropDownList1" runat="server" DataTextField="Descripcion" 
                  DataValueField="IdEstado"&gt;
              &lt;/asp:DropDownList&gt;
              &lt;asp:HiddenField ID="hdfestado" runat="server" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td class="style1"&gt;
              Fecha&lt;/td&gt;
          &lt;td&gt;
             &lt;asp:TextBox id="txtfecha" runat="server" ClientIDMode="Static"&gt;&lt;/asp:TextBox&gt;
              &lt;ajaxToolkit:CalendarExtender ID="dtpick" runat="server" EnabledOnClient="true" TargetControlID="txtfecha"&gt;&lt;/ajaxToolkit:CalendarExtender&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td class="style1"&gt;
  
             Observacion &lt;/td&gt;
          &lt;td&gt;
             &lt;asp:TextBox id="txtobservacion" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td class="style1"&gt;
          &lt;input type="button" id="btnretroceder" value="&lt;" /&gt;
          &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
          &lt;input type="button" id="btnAvanzar" value="&gt;" /&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;input type="button" id="btnguardar" value="Guardar" /&gt;
      &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;asp:HiddenField ID="idcliente" runat="server" /&gt;
  
  &lt;script type="text/javascript" language="javascript"&gt;
      var ax = document.getElementById("txtfecha");
      ax.readOnly = true;
  
      var frm = document.getElementById("form1");
      if (frm) {
          frm.onsubmit = function () { return false; };
      }
  
      $(document).ready(function () {
         $(btnAvanzar).click(function (event) {
              $.ajax({
                  type: "POST",
                  url: "wsClientes.asmx/ConsultarClienteJSON",
                  contentType: "application/json; charset=utf-8",
                  dataType: "json",
                  success: function (msg) {
                      AjaxSucceeded(msg);
                  },
                  error: AjaxFailed
              });
          });
      });
      function AjaxSucceeded(result) {
          var datos = eval('(' + result.d + ')');
          if (datos) {
              document.getElementById("txtnombre").value = datos.Nombre;
              document.getElementById("Txtapellido").value = datos.Apellido;
              $(DropDownList1).val(datos.IdEstatus);
              var a = new Date(Date(datos.FechaCaptura.substring(datos.FechaCaptura.indexOf('(') + 1, datos.FechaCaptura.indexOf(')'))));
              document.getElementById("txtfecha").value = a.getDate() + '/' + (a.getMonth() + 1) + '/' + a.getFullYear();
              document.getElementById("txtobservacion").value = datos.Observacion;
          }
      }
  
     function AjaxFailed(result) {
          alert(result.status + ' ' + result.statusText);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p>and here is the web service:</p>
  
  <pre><code>Imports System.Xml
  Imports System.Web
  Imports System.Web.Services
  Imports System.Web.Script.Services
  Imports System.Web.Services.Protocols
  Imports System.Runtime.Serialization
  Imports System.Runtime.Serialization.Json
  
  
  &lt;WebService(Namespace:="http://tempuri.org/")&gt; _
  &lt;WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)&gt; _
  &lt;ScriptService()&gt;
  Public Class wsClientes
  Inherits System.Web.Services.WebService
  
  &lt;WebMethod()&gt; _
  &lt;ScriptMethod(ResponseFormat:=ResponseFormat.Json)&gt; _
  Public Function ConsultarClienteJSON() As String
      Dim cls As New Datos.Usuarios.clsClientes
  
      Dim memstr As New IO.MemoryStream
  
      cls.Obtener_Clientes_AProp()
  
      Return Serialize(cls)
  
  End Function
  
  Public Shared Function Serialize(Of T)(obj As T) As String
      Dim serializer As New DataContractJsonSerializer(obj.[GetType]())
      Dim ms As New IO.MemoryStream()
      'serializer.
      serializer.WriteObject(ms, obj)
      Dim retVal As String = Encoding.Default.GetString(ms.ToArray())
      retVal = Encoding.UTF8.GetString(ms.ToArray())
      Return retVal
  End Function
  
  End Class
  </code></pre>
  
  <p>Thanks</p>