How to set a value of @Html.RadioButtonFor with the user input from @Html.TextBoxFor?
===

I have a razor @Html.RadioButtonFor, which takes its value from @Html.TextBoxFor value:

    @Html.RadioButtonFor(m => m.Sms, document.getElementById('@(Model.Phone)').value, new { Id = Model.Sms })

The problem is that

    document.getElementById('@(Model.Phone)').value

is a JavaScript code, incorect in this context, but I have no idea how to rewrite the same code so it is correct.
