Consider following:
$("#myform").attr({ action: "@Url.Action(MVC.Thing.Delete().AddRouteValue("id", myJsModel.Id )) });
I'm trying to set the action method of the form to a strongly typed T4MVC route. How do I insert a dynamic value from javascript into the route value?
I've seen the use of @: but I don't know how to insert it back into razor.