当用户单击按钮时,我需要将以下 TextFields 的值提交到位于/TestService/SaveMethod
.
<div class="content">
@Html.TextBoxFor(mo => mo.id, new { id = "id" })
<input type="text" id="fname" name="fname" />
<input type="submit" value="send" class="save"/>
</div>
jQuery:
$(function () {
$('.save').click(function () { // How to grab the values of those textfields and send it over the webservice located at `/TestService/SaveMethod` });
});