I'm using asp.net mvc 3-4.0 and the question is how to pass a model value to a .js file. Sometimes i don't want to put too many jquery lines on my razor view page.
something likes
$("#qcontent").load(
"@Url.Action("QuestionList", "TuongTac")",
{
id: 1,
keywords: @Model.keyword
....
}
is it possible to make it work in a .js file ?
Thanks.