23/10/2018
function deletedata(id, rid) {
var delete_data = $(".delete_data").attr("id");
//console.log(delete_data);
$.ajax({
type: "post",
url: "process.php",
dataType: "html",
data: {delete_id: rid},
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
}
function update(id, rid) {
var value = $(id).html();
console.log(rid);
console.log(value);
$.ajax({
type: "post",
url: "process.php",
data: {
fname: value,
rid: rid,
},
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
}
$(' -submit').on('submit', function (e) {
e.preventDefault();
var data = $(" -submit").serialize();
$.ajax({
data: data,
type: "post",
url: "process.php",
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
});
function mytest() {
$.ajax({
type: "get",
url: "process.php",
dataType: "html",
success: function (response) {
document.getElementById("success").innerHTML = response;
}
});
}
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(...