As I am working on Asp.Net MVC Application, in my application I am using jQuery.POST
method to submit a form.
e.g.
jQuery.post('/Product/Save', jQuery(document.forms[0]).serialize(),
function (data) { alert('Product Added Successfully.); }
);
In above code snippet, I want to pass another parameter.. let's say.. ProductID
.
So, the idea is, I want to pass both jQuery(document.forms[0]).serialize()
and ProductID variable
in jQuery.POST method
, so I can get both Form and ProductID
in my controller's action method
.
Could anybody please let me know that I would I do this?
Thanks in Advance.