I have a View Model
as follow:
public class UserViewModel
{
public string Name { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public List<string> Mac { get; set; }
}
And Action under User Controller:
[HttpGet]
public ActionResult Register()
{
return View();
}
I created a view for this action with the scaffolding tool, in the generated code, there is no input for my Mac property. How can I create a dynamic input for my List? I want an input field where new input will be added through jQuery.