How could I make an AJAX REQUEST by clicking on a link instead of a submit button? I want once the link is clicked to POST data from input fields
Here's how AJAX works:
$('#link_id').click(function(event){
event.preventDefault(); // prevent default behavior of link click
// now make an AJAX request to server_side_file.php by passing some data
$.post('server_side_file.php', {parameter : some_value}, function(response){
//now you've got `response` from server, play with it like
alert(response);
});
});