I have a \'template\' selector, that enables people to change the \'text/html\' of the current textarea.
So when they change templates, I need to update the Summernote H
This should actually work
$('.dialogMessageArea').code('some value you want');
NOTE:
HTML inside code()
function has to be a string. I don't think it will work if you are trying to insert an invalid HTML
contents.
Try doing this:
Create a hidden div and then in your AJAX
success
method try to insert the datas from the AJAX and then retrieve it using jquery's text()
function.