As you said, hidden input value is filled using jQuery, you can do the following:
@Url.Action("Index", "Action", new { @class = "myLink" });
<input type="text" style="visibility:hidden;" class="SelectedAction" />
$(".myLink").attr("href", "/Action/Index?id=" + $(".SelectedAction").val());
-KR