I am arranging a dynamic table of textboxes using a loop.
Please review the following code segment in view –
<% foreach (var item in Model.Names) { %>
<% =Html.TextBoxFor(item.Name)%>
<% } %>
The problem here is that i want their unique ids to be generated so that i could access each textbox using JS.
Any help is highly appreciated.
Regards
Irfan
Do this instead: