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:
- <form>
- <input name=title[someindex] id=title[someindex] />
- <input name=title[otherindex] id=title[otherindex] />
- <input name=title[anotherindex] id=title[anotherindex] />
- </form>
What should I do to get the values? The follow code seems not work:
$.each( $("#title") , function (index, value) { doStuffs(); });
$("#title[someindex]").remove();