I want to use jQuery blockUI but on their site they have not given what js to include, what css to use. Can sombody please give me a example with complete js and css included to show how to use jQuery blockUI.
Asked
Active
Viewed 2.0k times
2 Answers
11
All you need to do is loading the BlockUI script after including jQuery. It does not need any CSS to work.
See this fiddle for a most simple demo: http://jsfiddle.net/ThiefMaster/4FhHK/

ThiefMaster
- 310,957
- 84
- 592
- 636
-
What version of jquery does this work with? I'm using 1.10.4 and the blockUI function doesn't seem to be there. If I do alert($) I can see the jquery object but aleret($.blockUI) shows as undefined. – John Jan 29 '17 at 16:30
-
Did you load the blockUI plugin? It's not part of jQuery itself. – ThiefMaster Jan 29 '17 at 18:16
-
I did not, that was the problem. I'm now using the file marked as Version 2.70.0-2014.11.23. I also upgraded to jquery 3.1.1. But I am now having this problem: http://stackoverflow.com/questions/41923667/jquery-blockui-doesnt-work-unless-i-show-an-alert-first?noredirect=1#comment71027993_41923667 – John Jan 29 '17 at 19:19
-1
add this file after the jQuery reference
and then use the commands.

Royi Namir
- 144,742
- 138
- 468
- 792