jquery ui updates through code do not fire while submitting form
===

I have a loading div that shows in between different calls to the server.
Here is the code:

    $("#submitButton").click(function () {
            $("#loadingDiv").show();
            $(this).attr("disabled", "disabled");
            $("form:first").submit();                        
        });


It all works well if I comment out the third line of code to submit the form. But when I put the code to submit the form next to these ui update calls, none of them take effect, and the browser wait cursor shows till the result of the form submit are displayed.


