How do I get an element from a list of hidden elements?

How do I get an element from a list of hidden elements?

How do I get the elements from a form when these elements are named like each other? I'd like to make a list of values and store it in few hidden elements. It is suppose to work like a list of checkbox whose elements have the same name (and same id), but they are diferent indexed.

ex:
  1. <form>
  2. <input name=title[someindex] id=title[someindex] />
  3. <input name=title[otherindex] id=title[otherindex] />
  4. <input name=title[anotherindex] id=title[anotherindex] />
  5. </form>

What should I do to get the values? The follow code seems not work:

$.each( $("#title") , function (index, value) {   doStuffs();    });

$("#title[someindex]").remove();