title: Focus cursor to a hidden field
body: <p>I have this script where i want cursor to be focused on hidden field but it doesn't seem to be working . When i make the field visible it seems to work. </p>
  
  <pre><code>$(document).ready(function(){
      $("#card_number").focus();
      $("#card_number").keypress(function() {
         alert($("#card_number").val());
      });
  });
  </code></pre>