I am trying to grab the values of TextBoxs that I generate using JQuery. The TextBoxes get added to the page 3 at a time. Each 3 boxes represent an item.

Add creates another 3 boxes for size, price and color.
It seems that you can grab everything in a form i am told from Request.Form Which gives you a NameValueCollection Somehow and please correct me if i am wrong those values should be stored in that collection. That is what i cant seem to understand. Based on that collection how do you find the names of the textboxes and there values?
JQuery that creates the boxes:
<script type="text/javascript">
counter = 1;
function foo() {
$(".form").append('<div id=item' + counter + '><hr/><div class="innerItem"><p>size</p><input type="text" name="item" /><p>color</p><input type="text" name="item" /><p>price</p><input type="text" name="item" /></div>');
del = $("#item" + counter);
del.append('<input type="button" class="remove" value="remove" id="' + counter + '"/>');
counter++;
}
$("body").on('click', '.remove', function () {
var id = $(this).attr("id");
$("#item" + id).remove();
});
</script>
This is what i have in the codebehind. Mainly using this code to figure out how this works.
protected void Page_Load(object sender, EventArgs e)
{
if(IsPostBack)
{
NameValueCollection data;
//Load Form variables into NameValueCollection variable.
data = Request.Form;
// Get names of all forms into a string array.
String[] arr1 = data.AllKeys;
for (int loop1 = 0; loop1 < arr1.Length; loop1++)
{
Response.Write("Form: " + arr1[loop1] + "<br>");
}
}
}
This is codebehind generates:
Form: __EVENTTARGET
Form: __EVENTARGUMENT
Form: __VIEWSTATE
Form: item
I am thinking the data i want is in item. I just don't understand if that is right or how to access what is in item?
This could also be 100% wrong. I read some info online and might not understand it correctly.