How to get index of a triggered array input []? : So we can do:

    <input name=test[]>
<input name=test[]>
...

to created an array of input for test[].

But before submission, if I were to manipulate each input in javascript upon change, how do I do that? I figure there needs to be a way to pass the index of a particular input from test[]?

I'm stuck at $(this).index() or $(this).parents().index(), but these are index values of the DOM, they don't give the index values of the text[] array.

Help?

Thank you.