JQuery Parent/child form. how to Post to MVC Controller
Posted on 2010-04-06
This project is a booking calendar for a Spa.
I have a calendar on the Booking page. When the user clicks the calendar, a JQuery dialog is displayed with booking info.
The end user will here enter one or more treatments before they enter any information about the Customer. Since I don't know if this is a return or new customer, I don't want to save to the DB at this point so I put the information in a table in the dialog.
When the user press the OK-button, I'd like to save the information to the server. There are several form fields and off course the table with the information. How do I pass the data to the server with an AJAX call? If I use a Form Post, the data in the table will not be passed.
Any help is appreciated.