title: Print dynamic Text box value using JQuery
body: <p>I have a scenario like</p>
  
  <pre><code>for(int i = 0; i &lt; 10; i++)
  {
      &lt;input type = "text" id="test"+i value="" onchange="getValue(i)"&gt;
  }
  </code></pre>
  
  <p>I want to print selected text box value using jquery. I tried below code,....</p>
  
  <pre><code>function getValue(id)
  {
     var value = $("#test"+id).val();
     alert(value);
  }
  </code></pre>
  
  <p>Some how the above code is not working. 
  if i tried like <code>var value = document.getElementById("test"+id);</code> then it is working.</p>