MVC3中给Html.TextAreaFor设置默认值(初始值)
<div class="editor-field"> @Html.TextAreaFor(model => model.Comments) @Html.ValidationMessageFor(model => model.Comments) </div> <script type="text/javascript"> $(function () { $("#Comments").html("default value"); }); </script>
微信号:jamesworkshop 学习QQ群:364976091