I have a html form on my page. Im using a php file to send an email from the form, and after a successful email send its redirects back to the html form. After that i want to fade in a bootstrap success-alert. Is there any event that can handle this or anyway to solve this problem?
This is my JS now, but its dont run because if I hit the send button, its call the php file.:
<script type="text/javascript">
            $(document).ready(function() {
                $('#btnSubmit').click()(function(){
                    $('#myAlert').show('fade');
                });
            });
            </script>