title: jquery get id of input field
body: <p>i need to get the id of a input that's inside a span of a sharepoint list.
  it looks like the code below.</p>
  
  <pre><code>&lt;tr id="idEstablishmentRow"&gt;
  &lt;td class="ms-formbody" vAlign="top"&gt;
  &lt;span dir="none"&gt;
  &lt;span style="vertical-align: middle;"&gt;
  &lt;input type='text' id='hello' /&gt;
  &lt;/span&gt;
  &lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>now i want to get the id of the input.
  i have tried:</p>
  
  <pre><code>    var _test = $('#idEstablishmentRow').find('td.ms-formbody');
      var _test1 = _test.find('span.style');
  
      var _test2 = _test1.find('input');
      var _test3 = _test2.attr('id');
      alert(_test3);
      alert(_test2);
  </code></pre>
  
  <p>but it didn't work.
  could anyone help me ?</p>