I know that to send data to a php file using $.ajax is something like this:
$.ajax({
type: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
What I'd like to know is if it is possible to send the data on a specific function inside that file. If it is, can you show me how? Thank you.