How to dynamically add text box in asp.net mvc

how to dynamically add and remove text box in asp.net mvc

+3
source share
2 answers

Here is a quick and dirty solution:

$('<input type="text" name="myTextBox" />').appendTo(document.body);

The appendTo method takes quite a few things - dom elements, other jQuery objects, a selector. You can also check other DOM methods .

+2
source

Disclaimer .. I did not do this, but.

I would look at these posts here and here.

0
source

Source: https://habr.com/ru/post/1747301/


All Articles