net mvc model get current model value in javascript code example Example: access to model from js var model = @Html.Raw(Json.Encode(Model));