title: How to get index of name attribute from same name of multiple elements.
body: <p>I have some input fields, having same names but I only want to get the value of index of each input like this </p>
  
  <pre><code>&lt;input type="text" name="op_price[20]" value="20.00" size="3"  &gt;
  &lt;input type="text" name="op_price[2]" value="13" size="3"&gt;
  &lt;input type="text" name="op_price[14]" value="12" size="3"&gt;
  </code></pre>
  
  <p>So, for example I only wants to get 20, 2, 14 from op_price name attribute, is their any JS or jquery method to do this</p>