title: How to set focus to a textbox in a jquery dialog window?
body: <p>Is there a way to set focus to an input textbox inside jquery dialog window? I have looked at some other question over here but could not find the answser. </p>
  
  <p>I have tried .. </p>
  
  <pre><code>, open: function() { $(this).find("#inp").focus(); }
  </code></pre>
  
  <p>but it didn't work. </p>
  
  <p>Any ideas? Thanks.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>the content of dialog window is fetched thru an ajax call.</p>