I am using following code, to hide and display form
$(document).ready(function() {
$("#form_before_launch").click(function(){
$(this).animate({height:"300px" ,width:"400px"});
$(this).children("p").animate({fontSize:"35px"});
$("#form").delay(500).fadeIn();
})
$("#close").click(function(){
$(this).animate({height:"0px" ,width:"0px"});
})
});
Following code is working for form_before_launch
, but once I click div element with 'close' id, #close
function is called and after that #form_before_launch
is called again.