Hi,
I am trying to work with the new htmleditorextender but am having trouble clearing the value/ or changing in the textbox. (in the old editor I was able to use "set_content("")").
When using input type=reset all values on the page are reseted but NOT the textbox using the htmleditorextender.
I also tried clearing/changing them by code but nothing worked. The value is not resetted on the screen. When checking the value using alert the value seems to be cleared. but on the screen the value still shows.
some code I tried:
<asp:TextBox ID="TextBox1" runat="server" ClientIDMode="Static" TextMode="MultiLine" Rows="10" Width="80%" > </asp:TextBox>
<asp:HtmlEditorExtender ID="HtmlEditorExtender1" EnableViewState="false" runat="server" TargetControlID="TextBox1">
<Toolbar>
<asp:Bold />
<asp:Copy />
</Toolbar>
</asp:HtmlEditorExtender>
<input class="reset" type="button" value="Reset" onclick="clearpage();" />
the "clearpage()" function
$("#TextBox1").val("")
alert($("#TextBox1").val());
Can anyone please give me an idea how to reset the value/ or change the value in the editor without postbacking.
Thankyou
Karen
Comments: iuppiter, thank you for sharing your experience!