title: jQuery: focus()
body: <p>I have a fancybox that ajax calls file.php to get the content to show. file.php contains:</p>
  
  <pre><code>&lt;SCRIPT&gt;
  jQuery(document).ready(function($) {
  $('[name=replyMsg]').focus();
  });
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>but still it wont focus on the element when the box opens.</p>
  
  <p>How can I fix this/any solution?</p>
  
  <p>My fancybox settings looks like this:</p>
  
  <pre><code>    $("a.fancybox_wallConv").each(function(){
         $(this).fancybox({
          titleShow     : false,
          width:    380,
          height:   190,
          autoDimensions: false,
          overlayOpacity: 0.3, 
   showNavArrows: false,
  centerOnScroll: true,
          href: "file.php"
        }); 
      });
  </code></pre>
  
  <p>I am using the href function for the ajax call.</p>
  
  <p><a href="http://fancybox.net/api" rel="nofollow">http://fancybox.net/api</a></p>