$("#btnSend").click(function() {

    $("#request-process-patent").html("正在提交数据,请勿关闭当前窗口...");

    $.ajax({

        type: "POST",

        url: "RequestData.ashx",

        contentType: "application/json; charset=utf-8",

        data: JSON.stringify(GetJsonData()),

        dataType: "json",

        success: function (message) {

            if (message > 0) {

                alert("请求已提交!我们会尽快与您取得联系");

            }

        },

        error: function (message) {

            $("#request-process-patent").html("提交数据失败!");

        }

    });

});

 

function GetJsonData() {

    var json = {

        "classid": 2,

        "name": $("#tb_name").val(),

        "zlclass": "测试类型1,测试类型2,测试类型3",

        "pname": $("#tb_contact_people").val(),

        "tel": $("#tb_contact_phone").val()

    };

    return json;

}

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-04-12
  • 2022-12-23
  • 2022-01-15
  • 2021-10-14
  • 2021-11-12
  • 2022-01-28
猜你喜欢
  • 2021-12-22
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案