0

I use jQuery BlockUI plugin.

http://www.malsup.com/jquery/block/

I want to chage some text after jQuery BlockUI fades out.

Here is my code;

$('#cls').click(function() {
        setTimeout($.unblockUI, 0);
        $('#status').text("Processing...");
});

But the text changes back even before the fade completes. I want to do it hidden, without being visible, ie the text may be changed only after the fading is complete. How can I do this?

Here is the live demo http://jsfiddle.net/yHCjF/4/

4

1 回答 1

0

Use onUnblock callback

onUnblock: function(){
    $('#status').text('Processing...');
}

http://jsfiddle.net/jJxvS/

于 2013-03-07T11:31:51.737 回答