title: Autofocus on input field when div slides down
body: <p>I have is a hidden div. When the button is clicked, the div slides down with an input field. How do I make this input field autofocus as soon as the div slides down? Thanks.</p>
  
  <pre><code>&lt;input type="text" name="comment_field" id="comment_field" placeholder="Comment..." /&gt;
  </code></pre>
  
  <p>is what I have and is in a div</p>
  
  <pre><code>$("#status_comments_"+a).slideDown();
      $("#comment_field").focus();
  </code></pre>
  
  <p>I tried to use the above, but that didn't work. </p>