[jQuery] $.ajax POST single quote issues...
Alright, so here's the code I'm using (minus all the fluff):
$.ajax({
type: 'POST',
url: 'add-item.php',
data: 'desc='+ $('#description').val()
}); return false;
With #description being the id of my input field on the form.
Everything works properly except when I throw in a single quote it
kills the js. I know why it does, but I haven't been able to find how
to fix it. I've search for a few hours now with no luck... any ideas?
Thanks in advance for any help.