Oops, I missed one in the disappear function, which should read:

function disappear() {
  $("#response").fadeOut("slow");
}

> The code with proper semicolons would read:
> 
> function disappear() {
>   $("#response").fadeOut("slow")
> }
> 
> $(document).ready(function() {
>   $("#message_me").click(function() {
>     $("#form").fadeIn("slow");
>   });
>   $("#send").click(function() {
>     var str = $("#input_form").serialize();
>     $.post("send-mail.php",str,function(data) {
>       $("#response").html(data).fadeTo("slow", 0.7);
>       setTimeout("disappear()", 3000);
>     });
>   });
>   $.get("counter.php", function(data) {
>     $("#counter").html(data).fadeIn("slow");
>   });
> });

Reply via email to