[Solved] Please help with ajax script + jquery [closed]


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

        $("#note").fadeIn(1000).html('PLease wait...');

        var str = $(this).serialize();
        $.ajax({
            type: "POST",
            url: "/send.php",
            data: str,
            success: function(data) {
                $("#note").html(data);
                $("#fields").hide();
            },
            error: function() {
                $("#note").html('Error');
            }
        });
        return false;
    });

});

solved Please help with ajax script + jquery [closed]