Search code examples
javascriptc#jqueryhtmldotnetnuke

Get DotNetNuke Text Editor HTML Value with JQUERY / Javascript


I'd like to get DNN Text Editor's value from client side jQuery or javascript. I could retrieve the element by id but I'm nowhere close to get the value / content of the text editor. Can anyone show me a way or an alternative way to achieve this?

With the help of this link, I could only manage to get the id as below but when I tried to console out, it's 'undefined'.

var txt = $('#<%= ResourceText.ClientID %>_ResourceText');

Solution

  • Try the following: $('#<%= ResourceText.ClientID %>_ResourceText').val()