title: jQuery keyup not working on latest Chrome/IE/Opera
body: <p>The idea is to populate the database every time the user enters a string inside a text box. This works in Safari and Firefox but not in IE, Chrome and Opera.</p>
  
  <pre><code>$('.inputClass').on('keyup',function(){
              $.ajax({
                          url         : 'update.php',
                          type        : 'post',
                          data        : $('#MyForm').serialize(),
                          cache       : false,
                          success     : function(html) { /*any other stuff*/ }
              });
  
              return false; 
  }); 
  </code></pre>
  
  <p>In the above code, the database gets updated if Safari and Firefox are used, but not IE, Chrome and Opera. How would I make it work for all the major browsers? I am using jquery version 1.10.2. Thanks.</p>
  
  <p>Edit:
  Below is basically how the HTML and PHP look like:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Enqs&lt;/title&gt;
  &lt;script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="MyForm"&gt;
          &lt;input type="text" class="inputClass" name="qty" id="qty" size="5" /&gt;
      &lt;/form&gt;
  
      &lt;script&gt;
      $(function(){
         $('.inputClass').on('keyup',function(){
             $.ajax({
                      url         : 'update.php',
                      type        : 'post',
                      data        : $('#MyForm').serialize(),
                      cache       : false,
                      success     : function(html) { /*any other stuff*/ }
            });
  
            return false; 
         });
  
      }); 
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Below is the update.php file (a simple MySQL update):</p>
  
  <pre><code>&lt;?php
      $qty = $_POST["qty"];
      $qpd = "UPDATE tbl_name SET qty='{$qty}' WHERE id='9'";
      @mysql_query($qpd,$GLOBALS["dbconn"]);
  ?&gt; 
  </code></pre>