I have a jquery fancyzoom box. In that box ,I have a contact form which sends an email on submission. But I am not able to call form submit function due to fancyzoom.
Code is like :

("req\_quote.php")

```
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/fancyzoom.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
       $('#popup1_link').fancyZoom({width:610});
       $("#submit").css('cursor', 'pointer');

       $('.reqfrm').submit( function(){
          alert("hell");
       });
     });
     </script>
     <body>
         <form class="reqfrm" id="frm">
            <input type="text" name="name" />
             <input type="submit" name="submit" id="submit" value="Submit" />
         </form>
     </body>
   </html>

```

Above file is included in "index.php" which contains the actual link to open the form in fancyzoom box.

(index.php)

< a href="#popup1" id="popup1\_link">< div class="blink">Request a Quote< /a>"

If I remove `$('#popup1_link').fancyZoom({width:610});` then i get alert on submission otherwise it goes on form action directly.