Apologies if this has been answered elsewhere but I'm pretty new and not sure of search terms that will help me.
I have a form that has this:
<form onsubmit="InsertAppointment()" method="get">
Which calls the following Javascript
function InsertAppointment()
{
alert("moo");
$.get("test.php",
function(data)
{
alert(data);
}
);
}
test.php just does
<?php
echo "test complete";
?>
I was expecting the javascript to return two message boxes one of which says moo, the other test complete, i get the first one but not the latter. I'm really not sure what I'm doing wrong.