Q:

Send parameters to partial view loaded with .load()

I have a button in my form "Add Question" and when I click on it I load a partial view like this:
$("." + classname).load("/partials/question-partial.phtml");

The classname is for example "questioncontainer3". But now my question is how can I send parameters to the view and use them in my view?

A:

Using the same load() function, you can simply do:
$("." + classname).load("/partials/question-partial.phtml", { "firstfield": "Jon", "secondfield": "Susan" } );

