3

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

3
  • Please be more specific. Give examples of your markup. Commented 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 textboxes Commented May 27, 2010 at 7:13
  • Do you want it to happen on the clientside or on the serverside? Commented Jun 6, 2010 at 19:23

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

I would look at these posts here and here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.