$(document).ready(function () { alert("yy"); $("#save").click(function () { var json = "{'USER_NAME':'" + escape(USER_NAME.val()) + "','MOBILE_NO':'" + escape(MOBILE_NO.val()) + "'}"; alert(json); alert("RRR"); // var ajaxPage = "~/Book/Employee/{0}"; alert(ajaxPage); $.ajax( { type: "POST", url: ajaxPage, data: json, contentType: "application/json;charset=utf-8", dataType: "json", async: false, success: function (data) { if (data.Message == "Data Deleted Succeffully") { showMessage(data.Message); $('#table').dataTable().fnAddData(); filltable(); } else { showMessage(data.Message); } }, error: function (msg) { alert("failed: " + msg); } }); }) }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)