js ajax post form data code example
Example 1: ajax data post call in javascript
$.ajax({
url: 'ajaxfile.php',
type: 'post',
data: {name:'yogesh',salary: 35000,email: '[email protected]'},
success: function(response){
}
});
Example 2: js ajax post strings
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});