how to dynamically add and remove textbox in asp.net mvc
-
Please be more specific. Give examples of your markup.Darin Dimitrov– Darin Dimitrov2010-05-27 06:51:49 +00:00Commented May 27, 2010 at 6:51
-
I have an employee registration form and in which user can have multiple qualifications so i want that user can add multiple textboxes and then add their qualification in that textboxesFraz Sundal– Fraz Sundal2010-05-27 07:13:00 +00:00Commented May 27, 2010 at 7:13
-
Do you want it to happen on the clientside or on the serverside?Paul– Paul2010-06-06 19:23:23 +00:00Commented Jun 6, 2010 at 19:23
Add a comment
|
2 Answers
Here is a quick and dirty solution:
$('<input type="text" name="myTextBox" />').appendTo(document.body);
The appendTo method accepts quite a lot of things - dom elements, other jQuery objects, selectors. You may also want to check the other DOM manipulation methods.