<textarea> and ajax with serialize()...HELP
I'm using ajax to process a form. But my form has textareas in them. Its not passing the textarea values.
Here is my javascript code:
- $.get(
"process_order.php",
$("#order").serialize(),
function(data){
$('#loader').hide();
if(data) {
pTag = "<img src='http://www.heartofgold-usa.com/images/saved.png' width='200px'><br />Order Saved";
$('#popup').empty();
jQuery("#popup").append(pTag);
jQuery("#popup").dialog('open');
} else {
pTag = "<img src='http://www.heartofgold-usa.com/images/error.png' width='200px'><br />There was an error!<br /><font size='1px'>" + data + "</font>";
$('#popup').empty();
jQuery("#popup").append(pTag);
jQuery("#popup").dialog('open');
}
},
"html"
);
I just have a simple textarea section and I NEED to allow HTML code in that text area.