I am getting this Uncaught SyntaxError: Unexpected identifier error , Why ?
I think i have used the syntax properly ?
$.ajax({
url: "loadcontent1.php",
data: {
lastid: '$(".postitem").size()',
location: '$("#location").val()',
rstatus: '$("#rstatus").val()',
gender: '$("#gender").val()'
}
success: function(html) {
Uncaught SyntaxError: Unexpected identifier
if (html) {
$("#contentwrapper").append(html);
$('div#ajaxloader').hide();
$("#contentwrapper").masonry('reload');
FB.XFBML.parse();
} else {
$('div#ajaxloader').html('<center>No more Images.</center>');
}
}
});
You left off the comma after the
data