我将 jquery.wysiwyg ( https://github.com/akzhan/jwysiwyg ) 与 MVC2 一起使用。如何获得 textarea 的值?
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NotificationsViewModel>" %>
<script>
$(document).ready(function(){
$('#Message').wysiwyg();
});
</script>
<% using (Html.BeginForm("ManageNotifications", "Admin", FormMethod.Post))
{ %>
<table class="noborderverticalcenter" style="width:100%;">
<tr>
<td>Message</td>
<td>
<%= Html.TextAreaFor(model => model.Message) %>
</td>
</tr>
</table>
<% } %>