I use this jquery script to invoke a modal pop up which basically is a contact form.
What happengs in the code is that the following div is hidden before one of the images is clicked:
<div id="toPopup">
<div class="close"></div>
<span class="ecs_tooltip">Press Esc to close <span class="arrow"></span></span>
<div id="popup_content"> <!--popup content starts-->
<form action="mail.php" method="POST">
<input id="firstinput" type="text" name="name" placeholder="Navn"><br/>
<input type="text" name="email" placeholder="Email"><br/>
<input type="text" name="phone" placeholder="Telefon nr">
<br />
<textarea name="message" rows="6" cols="25" placeholder="Besked"></textarea><br />
<input type="submit" value="Send">
</form>
</div>
</div>
After the form is filled in and sent, the php script just echos a thak you message. What I want to do is after the form is submitted a thank you message to appear in the same pop up. I wonder what solution would make most sense.
Any help or guidance is much appreciated.