I am trying to get the value of the ckeditor field but I can not seem to return the data.
Below is a snippet of the control and then the javascript. In the javascript it does not return the data. I can get the information back if it is a text field but not a ckeditor field. Thanks in advance.
aspx page
<CK:CKEditorControl width="500px" id="txtTopicPopup" placeholder=""<br/><br/>3. Discussion question" runat="server" Height="70" BasePath="/ckeditor"></CK:CKEditorControl>
<script type="text/javascript">
document.getElementById('<%=txtTopicPopup.ClientID %>').value;
</script>
Help!
Help!
I did not mention that it does return a value, it just returns the value entered when the screen was first displayed. If the value is changed it still returns the old value.
If I put a ASP text box on the page I can get the updated. I just have problems with my ckeditor field.
I saw an error in my snippet. I added code to make sure no one thinks it is my code.
<script type="text/javascript">
var myvalue = document.getElementById('<%=txtTopicPopup.ClientID %>').value;
alert(myvalue);
</script>