title: index for name input
body: <pre><code>&lt;input type="text" name="test[ooo][]"&gt;
  &lt;input type="text" name="test[bbb][]"&gt;
  &lt;input type="text" name="test[ccc][]"&gt;
  &lt;input type="text" name="test[vvv][]"&gt;
  ​
  $('input').each(function(){
    console.log($(this).attr('name').index('bbb'));
  })​
  </code></pre>
  
  <p>Why this not working? How can i check index for attribute name from input?</p>
  
  <p><a href="http://jsfiddle.net/UA2BN/" rel="nofollow">http://jsfiddle.net/UA2BN/</a></p>
  
  <p>I don't must use index(). I can use other function, but how can i check this?</p>