I have a terrible thing right now.
I have an editor
, which is edited on DIV
, so I want his HTML code hypothetically, and I find that it is used:
var html = document.querySelector (".ql-editor"). InnerHTML;
then when the list POST is out
my console.log can print out the results. There is no problem
my jquery structure looks like this
var formData = new FormData($("-sharpform")[0]);
there is no problem with other input
only $content has a problem! He will be empty
"UPDATE `news` SET
`content` = "".$_POST["content"].""
WHERE `id` = "".$id."" "
I have added Tibetan input to the list
<input type="hidden" name="content" id="content">
then do this at jquery:
$("-sharpcontent").val(html);
but this method does not work at all.
he will be empty!
but the problem is that I console.log printed html he is worth it!
what is the problem?