Watch this example on YouTube
@Html.TextBoxFor(x=>x.or.Column3, new { @id="myID"})
<input type="button" id="btnSubmit" value="Submit" />
}
@section Scripts{
<script type="text/javascript">
$(document).ready(function () {
$("#btnSubmit").click(function () {
$("#myID").prop("disabled", true);
});
});
</script>
}
No comments:
Post a Comment