So i have displayed two input fields the user can enter information in them. I also have another button "add" that allows the user to add another set of two input fields to enter data.
This is my current view of the what i have but i need to add the functionality of adding input fields into my viewModel so it is available upon user click.
I would like to add the functionality of clicking the add button to be placed in like:
self.addName = function(){//return new input fields to user}
and in my html i would have <a href="#" onclick="addName()">