title: Targeting elements in a jQuery Dialog, Why must use this as context
body: <p>I find that when I am trying to target an element in a jQuery Dialog, I must do something like</p>
  
  <pre><code>$("#elemInDialog", this).val()
                     ^
  </code></pre>
  
  <p>I found that this only occurs in my simple code seen <a href="http://jiewmeng.kodingen.com/test/jquery-autocomplete.html" rel="nofollow">http://jiewmeng.kodingen.com/test/jquery-autocomplete.html</a> or <a href="http://jsfiddle.net/28GMT/" rel="nofollow">http://jsfiddle.net/28GMT/</a> (in jsFiddle or jsbin, the auto complete doesn't work even, but it works in my hosted version) what did I do wrong?</p>