// prepare the form when the DOM is ready 
$(document).ready(function() { 
    // bind form using ajaxForm 
    $('#contact').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#contact_box', 
 
        // 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() { 
            $('#contact_box').fadeIn('slow'); 
        } 
    }); 
});