I am trying to run an update service from javascript. WHats the correct syntax to pass the _id to the Query String part of request? I have tried this and I get bad request error
var jno=$(this).closest("li").find("[name=lblJobID]").text();
var type=$(this).closest("li").find("[name=txtJobType]").val();
var desc=$(this).closest("li").find("[name=txtJobDescription]").val();
var hours=$(this).closest("li").find("[name=txtJobHours]").val();
var date=$(this).closest("li").find("[name=txtJobDate]").val();
updateJobs.execute({"data":{"_id":jno, "type":type, "description":desc, "jobDate":desc, "hours":hours}});