I have a form inside a reveal modal (Foundation 5). By default the modal closes when the form is submitted. I would like the modal to stay open when the form is submitted or show error messages. I thought this would be the solution, but it doesn't work:
<input id="fscf_submit1" class="fscf-button-submit" value="Submit" onsubmit="$('#myModal').foundation('reveal', 'open');" type="submit">
The page can be viewed here:
http://hearables.co.za/ click on "Send us a message"
There are a number of forum post on this issue, but I didn't find a solution (AJAX is Greek to me though) - apologies if I'm double posting.