I have a tooltip with a simple contact form that I want to load the “message sent” int to the same tooltip div instead of loading a external submit.php page.
<div id="contactform" >
<form method="post" action="submit.php">
<label for="Name">name</label><br />
<input type="text" name="Name" id="name" /><br />
<label for="Email">email</label><br />
<input type="text" name="Email" id="email" /><br />
<input type="submit" name="submit" value="send" class="submit" id="submit"/>
</form>
</div>
Add this to your
header:jQuery
jQuery.post()
PHP (/ajax/submit.php)