I'm using AjaxControlToolkit.HTMLEditor
, and I want to add a value to it using JavaScript or jQuery like this:
alert( $find("eCompose_ctl02_ctl01")); // if
$find("eCompose_ctl02_ctl01").attr('value') = "asdfasdfasdf asdfasd asdf sf";
also tried like this:
document.getElementById('eCompose_ctl02_ctl01').value += "ababsakas asdasd l";
But the above code does not insert text into HTMLEditor. Can anyone help me?
EDIT This is the HTML code for HTMLEditor:
<HTMLEditor:Editor ID="eCompose" runat="server" Height="240px" Width="90%" AutoFocus="true" InitialCleanUp="true" />
I tried to access like this:
alert(document.getElementById("<%= eCompose.ClientID %>"))
and got null
.