开发者

How do I need to use Jquery UI Block

I have a button on the page in asp.net mvc control. when开发者_如何学运维 I click the button its taking some time to finish the work on my page.

Mean while If user wants to do something on the page I should not allow the user to do soo. So that I need to show the message please wait.

Is this the good idea to use jquery ui blcok? or do I need to do in other way?

If so how to do this kind of behavior?


You can simply disable the form and all interact-able elements if you think using a blocking API (such as blockUI) is overkill, e.g.:

$("form").submit(function() {
    $(this).find(':input').attr("disabled", "disabled");
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜