I currently have a form that I am trying to perform a post on (serializing the form), however I also want to include several checkboxes (but I don’t want to include them in the form itself)
I have tried using jQuery’s .post, but was unable to accomplish what I needed, any help would be greatly appreciated.
(I am using asp.net MVC 2.0 – and I figured this event would be attached to a button click)
There are several ways to accomplish this, I’ll demonstrate two for you, along with an example of a Controller Action to accept the data:
Your Controller Action:
.post Method:
.ajax Method:
I hope this helps you accomplish what you need.