title: get id value by index using name jquery
body: <p><strong>html</strong></p>
  
  <pre><code>&lt;input id="1" name="myText" type="text" value="20"/&gt;
  &lt;input id="2" name="myText" type="text" value="30"/&gt;
  &lt;input id="3" name="myText" type="text" value="40"/&gt;
  </code></pre>
  
  <p>How can I get id value by <code>index</code> using name? </p>
  
  <p>The following code snippet is not working </p>
  
  <pre><code>var getVal = $('[name="myText"]').index(1);
  </code></pre>