title: Get the text entered in the text box on loss of focus with jQuery
body: <p>How can I get the value entered in the textbox below? </p>
  
  <pre><code>&lt;tr&gt;
      &lt;td class="TextBold" &gt;1.&lt;/td&gt;
      &lt;td class="TextBold" &gt;Content for Question 1:&lt;/td&gt;
      &lt;td class="TextBold" &gt;
        &lt;input name="ctl00$DefaultContent$ctl2" type="text" class="TextNormal" /&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  </code></pre>
  
  <p>This gives me the <em>name</em> of the textbox:</p>
  
  <pre><code>var idT = $("td:contains('1.')").next().next().children().eq(0).attr('name');
  </code></pre>
  
  <p>Now I would like to write function which will give the value entered in the textbox.</p>
  
  <p>Something like:</p>
  
  <pre><code> $('input[name^=ctl00$DefaultContent$ctl2]').blur(function () {
          alert($(this).val());    
      });
  </code></pre>
  
  <p>This worked for me:</p>
  
  <pre><code> $('input[name="' + idT + '"]').blur(function () {
              alert($(this).val());    
          });
  </code></pre>