Posting to action, mvc 3, not part of form

hoprob

New Member
Can I post to action from view a filed of of my model ? Is is not part of the form. I just want to pass the myModel.someValue as argument to nextRelease action, hopefully without putting it anywhere in the form.e.g.View:\[code\]@model myModel@using (Html.BeginForm("Search", "News", FormMethod.Get, new { id = "myform" })){<div>myModel.someValue</div> //to show it has this field<script type="text/javascript"> $('#nextbutton').click(function () { $('#myform').attr("action", "/@controller.Language/news/nextRelease"); $("#submit").click(); });</script>}\[/code\]
 
Top