Hi can someone explain me this code? actually i need to write another function like this but without passing any parameter, then what should I insert in data? the code is using the parameter id in data but what if i dont have any parameter?
server.prototype.GetSpeed=function(id){
$.ajax(
{url:"marks.php",
data: {id:id},
type:"POST",
dataType: "json",
success:function(data){
//do something.
}
}
);