I am trying to find the correct syntax to pass a varible to my JQuery Post.
var id = empid; $.ajax({ type: \"POST\", url: \"../Webservices/EmployeeS
It's not. You're passing a string, you should be passing an object literal,e.g.
data: {"empid" : empid}
See the difference? Assuming empid is a variable with some sort of value, that should work fine. Alternatively you can do this
data: "empid="+empid
http://docs.jquery.com/Ajax/jQuery.ajax#options