calling web service in jquery
I am trying to call the web service web method using jquery ajax. But i dont what is the error in the following jquery script. can any one find the error and give the correct solution. Thanks in advance
-
- $.ajax({
- type: "POST",
- contentType: "application/json",
- url: "WebEmployee.asmx/employeeDetails",
- success: function (data) {
- //sucess function
- },
- error: function () {
- //error
- }