if i have + symbol in comment variable record is not submitted. is there any way i can encode the query string in jquery? i tried some of the methods but they didn't worked
$.ajax({
type: 'post',
url: rootURL + 'services/service.php?method=insertcomment',
data: 'comment=' + comment+'&storyid='+storyid,
dataType: 'json',
success: function (data) {
if(data.code == 200)
$('#success-message')..show();
else
alert('failure');
}
});