I have simple form with a textarea and a button, and I submit the form with jQuery .post() function and in 'json' format.
My form submits correctly until I wrote some html tags like bold etc. in the textarea, then the form dose NOT sumbit to server anymore.
I don't know what is wrong with what I'm doing and how do I get html segments submitted using jQuery in this case?
Edit: here is the form,
<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
<input name="submit" type="button" id="submit" tabindex="5" value="Submit Comment" onclick='postComment()'/>
here is the js
function postComment() {
var comment = {};
comment.Body = $("#comment").val();
$.post("Comments", comment, parseComment, 'json');
};
function parseComment(data) {
$("#commentList").html(data.Body);
};