i tried to fade in an Ajax form, from another Ajax request to a php
page, which when submitted will show up the Ajax response but instead
when submitted it shows up a new page...and moreover the form's submit
button's value attribute contains a custom string by me...but instead
it shows up "Submit Query" as the submit button's value...

the code piece is given for your convenience...

$(document).ready(function(){
    $("input[name='events']").click(function(){
        var logd=$("input[name='logged']").val();
        $.post("events.php", { logged:logd },
            function(data)
            {
                $("#response").hide();
                $("#response").html(data);
                $("#response").fadeIn("slow");
            }
        );
            //$(":reset").click();
            return false;
    });
});

Reply via email to