<input type="text" name="test[ooo][]">
<input type="text" name="test[bbb][]">
<input type="text" name="test[ccc][]">
<input type="text" name="test[vvv][]">
$('input').each(function(){
console.log($(this).attr('name').index('bbb'));
})
爲什麼這不工作?我怎樣才能從輸入檢查屬性名稱的索引?指數名稱輸入
我不必須使用指數()。我可以使用其他功能,但我該如何檢查?