I want to save my form data via jquery but i can’t able to access it in my script.Can anyone help me.
URL access in script: url: ‘admin.php?page=insert.php’,
My script
$(function () {
$('form').on('submit', function (e) {
e.preventDefault();
var schema_key = $("#schema_key").val();
$.ajax({
type: 'post',
url: 'admin.php?page=insert.php',
data: schema_key,
success: function () {
alert('form was submitted');
}
});
});
});