I am using webmethod with Jquery. I have write a alert in success function and I got that alert when I run the project but My Webmthod did not call and So code is not work for me. I have put degub a point in Webmethod but it did not hit. I did not get any error nor my method call.
Below is my code of Jquery and Webmethod:

```
  <script type='text/javascript' src="Scripts/jquery-1.4.1.min.js"></script>
   function onDialogClosed(sender, args) {         

        $(document).ready(function () {
            $.ajax({
                type: "POST",                  
                url: "SpellChecker.aspx/Save",
                data: { DocName: $("#txttest").val() },                
                success: function (msg) {
                    alert($("#txttest").val());  
                },
                error: function (a,b,c) {
                    alert(a+ b+ c);
                }
            });
        });

    }

```

WebMEthod : 

```
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public static string Save(string DocName)
{
    try
    {
        GeneralDataTraveler objDataTraveller = new GeneralDataTraveler();
        objDataTraveller.Field1 = Convert.ToString(DocName);
        new ServiceCenter().SessionSetGeneralDataTraveller(objDataTraveller);
        return "HEllo";
    }
    catch (Exception ex)
    {
        return null;
    }
}

```