title: Keypress event not working
body: <p>I am using this code but keypress event not working</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          $('#txt_tempusername').keypress(function() {
  
              var href = $('#providerurl').val();
              href = href.toString().replace("{username}", $('#txt_tempusername').val());
              $('#btn_idgo').attr('href', href);
  
          });
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>and this is my HTML</p>
  
  <pre><code>&lt;div class="Input_Div"&gt;
   &lt;input type="text" id="txt_tempusername" /&gt;
   &lt;a class='example1demo' id="btn_idgo"&gt;Go&amp;lt;/a&gt;
   &lt;input type="hidden" id="providerurl" /&gt;
  &lt;/div&gt;
  </code></pre>