Results 1 to 1 of 1

Thread: Pop up form closing on click but not allowing for form fill out???

  1. #1
    Join Date
    Jul 2011
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Pop up form closing on click but not allowing for form fill out???

    My pop up form keeps closing when I try to click the form to fill it out. I cannot seem to figure out why? I want the form to close on click of the submit button but right now it closes no matter what you click???

    Here is my javascript code:

    <script type="text/javascript">
    $(document).ready(function(){

    $("a#in").click(function(event){
    $("div#box").fadeIn("slow");
    });

    $("div#box").click(function(event){
    $("div#box").hide("slow");
    });

    $("a#show").click(function(event){
    $("div#box").show();
    });

    $("a#slide").click(function(event){
    $("div#box").slideDown("slow");
    });
    });
    </script>

    Here is my button code:

    <button onclick="javascript:document.contact.submit();" type="button" id="send_btn"><h4>Submit:</h4></button></p>
    <input type="hidden" name="submitForm" value="true">
    Last edited by shellymabelly83; 10-19-2011 at 11:35 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •