PDA

View Full Version : Pop up form closing on click but not allowing for form fill out???



shellymabelly83
10-19-2011, 11:09 PM
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">