0

I have an existing jquery function where I need to add one more parameter to post to the controller.

var form = $("#PackageForm").serialize();

$.post("/Packages/Edit", form, function (data) {
                           if (data.Success) {
                                                ...
                                              }

Now, in this code how do I add one more parameter?

0

1 Answer 1

1

Just append to form data:

var form = $("#PackageForm").serialize();
form+= "&myParam="+paramValue;
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.