ajax post method example using javascript
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: post jquery
$.post( "ajax/test.html", function( data ) {
$( ".result" ).html( data );
});