HI
I am getting this error: Uncaught SyntaxError: Unexpected token function in line setInterval(function(){ (line 5)
Someone can tell me what i wrong done ?
$.ajax({
type:"POST",
url:'getmessage.php',
data:{user_id:id},
setInterval(function(){
success: function(data){
$('.umsg'+id).append(data);
},
}, 2000),
});