how to dynamically add and remove textbox in asp.net mvc
+2
A:
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.
korchev
2010-05-29 08:46:15