views:

99

answers:

0

I have set up a page which when I click the button BlockUI does what is supposed to do as well as jquery Form plugin; however, the success and failure messages are displaying in the blockUI. What I would like is for the success and error messages to replace the form. The code I am using:

$(document).ready(function() { 
    $('#signup').click(function() { 
        $.blockUI({ message: $('#blockform') }); 

     }); 
}); 
$(function() { 
    // bind form using ajaxForm 
    $('#myForm').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '.message', 

        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            $('.message').slideDown('slow'); 
        } 
     }); 
});

what part of this needs modify for it to function correctly?