When user clicks 'add new' button I want to add more textbox into the page, so that he can add n number of values. I will do this with jQuery. But on submit click I want to get values from all the fields at server side. How can I accomplish this?
Asked
Active
Viewed 158 times
-1
-
you cant!! you need to call via ajax. – Ravi Gadag Mar 04 '13 at 10:46
-
This StackOverflow Question gave answer http://stackoverflow.com/questions/437955/submitting-form-elements-with-the-same-name – Subin Jacob Mar 04 '13 at 10:54
2 Answers
0
Use jQuery.clone()
to make a clone of the inputbox.
Remember this inputbox will be in array form as below
<input name="clonedbox[]"
and then just send it in submit
function or ajax
call.

Dipesh Parmar
- 27,090
- 8
- 61
- 90
0
You can store values in hidden field which has runat="server" using javascript and use that hidden field in server side code of asp.net

Adil
- 146,340
- 25
- 209
- 204