My simple one field form is at the bottom of this page:
How do I get it so that the 'Success' or 'Error' message either replaces the field itself on submit or shows below, rather than sending the user to a whole other page?
HTML:
<div class="email-wrap">
<form id="emailForm" style="display: block;" action="form.php" method="POST">
                <div>
                    <input type="text" value="Recommend a book" name="mail" id="mail">
                    <input type="submit" name="button" value="GO">
                </div>
</form>
</div>
 
     
     
    