Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on 

Using Razor, I need a button that adds text fields when clicked

Using Razor and jQuery, I need to append a text field onto an existing div tag when the button's beeen clicked. The region should be a div tag and I need to use appendTo(), passing in another div tag in the contents.

I'm not sure how to do this.

I also need to have a unique ID for each field added, so I can associate it to a unique property on my ViewModel.

Thanks.
ASP.NET.NET ProgrammingC#

Avatar of undefined
Last Comment
curiouswebster
ASKER CERTIFIED SOLUTION
Avatar of Craig Wagner
Craig Wagner
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of curiouswebster

ASKER

Thanks.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo