I am using CKEditor with JQuery AJAX and ASP.NET MVC.
I am trying to perform an AJAX POST with JQuery but it fails to submit because of the HTML in the textarea. The form submits fine if I just enter plain text in a textarea, but not as HTML.
The JQuery method I am using to get the HTML from the textarea is .val()
Can someone tell me how to fix this problem please?
You will have to use GetData and also make sure your controller action that accepts the post has this annotation applied [HttpPost, ValidateInput(false)]