I am having trouble on calling a methode. I can do it with below codes but how to put in js var with my call?
$.ajax({
url: '@Url.Action("surfacepost", "surface", new { text = "ThisSchouldBeAJaVar" })',
method: 'GET',
success: function (data) {
}
});
In fact this mthode is getting a partial as I am going to display. So if there is a better way of dynamic load a partial using js, please also let me know. Thanks