1

I am new to jQuery, but I would like to have a button that when clicked will add more textboxes to a page. I have three textboxes that contain data of the same type and if the user has more data of the same type to enter, I would like to pop up three more textboxes.

What would be the best way to go about that?

2 Answers 2

1

I'd recommend reading Editing a variable length list, ASP.NET MVC 2-style by Steve Sanderson. It explains how to achieve what I believe you are trying to do.

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

1 Comment

That is basically what I need. But I need to do it without a strongly typed view because there are multiple types of data on the same page.
0
$("<input type='text' name='as_it_should_be'>").append(...).

Check jQuery documentation.

Regarding Asp.net MVC model binding to collections of data, this may help as well.

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.