This will probably be a rather simple question.
How do I pass:
var ident = $(this).attr("id");
to
content.load("@Html.Raw(Url.Action("Action", "Controller", new {id=ident}))");
I've tried:
... new {id="+ident+"}))");
but it doesn't work.
Solution
For my specific problem, the best solution I found was the following:
var ident = $(this).attr("id");
var route = "@Html.Raw(Url.Action("Action", "Controller"))";
var url = addParameterToURL(route, ident);
content.load(url);
With the method:
function addParameterToURL(url, param) {
_url = url;
_url += (_url.split('/')[1] ? '/' : '/') + param;
return _url;
}