jQuery BlockUi Message after another

前端 未结 2 1835
暖寄归人
暖寄归人 2021-01-06 11:03

I\'m using jQuery BlockUI plugin, and i have been able to sucessfully show a single message in the page, however... let\'s say that I want to show 3 messages , one after ano

2条回答
  •  不知归路
    2021-01-06 12:04

    Just create a div in your page like this:

    And for the script...

    $.blockUI({ message: $('#blockMessage') });
    $("#blockMessage").html('Hello World!');
    $("#blockMessage").html('Hello Galaxy!');
    $("#blockMessage").html('Hello Universe!);
    $.unblockUI();
    

    This goes by very fast, but you get the idea....bonus here is you can style it to look however you want as well, e.g.:

    #blockMessage { font-weight: bold; }
    

提交回复
热议问题