这就是我所做的
var varPrimayNotes = $("input[id*=txtDescription]").val();
在 varPrimaryNotes 中得到
{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":""}
如何使用 Jquery 获取 RadEditor Telerik 的准确文本。
这是我的辐射编辑器控件
<rad:RadEditor ID="txtDescription" runat="server" width="800px"
Height="150px" Skin="Vista">
<tools>
<rad:EditorToolGroup Tag="MainToolbar">
<rad:EditorTool Name="FindAndReplace" />
<rad:EditorSeparator />
<rad:EditorSplitButton Name="Undo">
</rad:EditorSplitButton>
<rad:EditorSplitButton Name="Redo">
</rad:EditorSplitButton>
<rad:EditorSeparator />
<rad:EditorTool Name="Cut" />
<rad:EditorTool Name="Copy" />
<rad:EditorTool Name="Paste" ShortCut="CTRL+V" />
<rad:EditorTool Name="Ajax spellcheck" />
</rad:EditorToolGroup>
<rad:EditorToolGroup Tag="Formatting">
<rad:EditorTool Name="Bold" />
<rad:EditorTool Name="Italic" />
<rad:EditorTool Name="Underline" />
<rad:EditorSeparator />
<rad:EditorSplitButton Name="ForeColor">
</rad:EditorSplitButton>
<rad:EditorSplitButton Name="BackColor">
</rad:EditorSplitButton>
<rad:EditorSeparator />
<rad:EditorDropDown Name="FontName">
</rad:EditorDropDown>
<rad:EditorDropDown Name="RealFontSize">
</rad:EditorDropDown>
</rad:EditorToolGroup>
</tools>
<content>
</content>
</rad:RadEditor>
Youe帮助将不胜感激。