help with jquery ajax success event
<p>I'm having an issue with my update button and jquery ajax. Right now when I click on my update button, it saves whatever updated data to the database. My goal is I want to slide up a message if the update is successful. I was looking at ajax post and using the success event seems like it would work but I dont know how to incorporte it. How would I do this? Would it be something like this?</p>

<pre><code>     $(document).ready(function(){
        $('#divSuccess').hide();

        $('#btnUpdate').click( function() {
        alert('button click');
            $.ajax({ 
                  url: "test.aspx", 
                  context: document.body, 
                  success: function(){ 
                    $('#divSuccess').show("slide", { direction: "down" }, 3000);
                    $('#divSuccess').hide("slide", { direction: "down"}, 5000);
                  }
                }); 
        });
    });
</code></pre>
