December 19, 201213 yr im trying to get the action file of my form to load into jQueries Facebox. I have it working on a link but how do I get it to work with the submit button. facbox code in the head of my document is <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <!-- Include Facebox CSS and script files --> <link rel="stylesheet" type="text/css" href="facebox/facebox.css" /> <script type="text/javascript" src="facebox/facebox.js"></script> <!-- Attach Facebox to the page --> <script type="text/javascript"> jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() }) </script> and my form code is <form action="includes/form_action_handler.php" method="POST" id="contact"> <label>Name:</label> <input type="text" id="name" name="name"> <label>Email Address:</label> <input type="text" id="mail" name="mail"> <label>Comments:</label> <textarea rows="5" cols="20" id="comment" name="comment"></textarea> <input type="image" class="submit" name="submit" src="img/formSend.png" /> </form> Edited December 19, 201213 yr by dpuk44
Create an account or sign in to comment