views:

146

answers:

2

how to dynamically add and remove textbox in asp.net mvc

A: 

Disclaimer.. I haven't done this, but.

I would look at these posts here and here

itchi
+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