Block UI Jquery plugin for a specific DIV
Asked Answered
T

3

8

Anyone knows a JQuery plugin for BlockUI that allows blocking a specific DIV, not just the whole page. Thanks.

Tattan answered 3/8, 2011 at 20:46 Comment(0)
L
11

You can do it thru blockui plugin

Luik answered 3/8, 2011 at 20:49 Comment(1)
Wasn't quick enough! @Andrew beat me with the same answer. :)Luik
W
10

You can do this natively with BlockUI: http://jquery.malsup.com/block/#element

$('div.test').block({ message: null })
Woolfell answered 3/8, 2011 at 20:49 Comment(2)
How about if I want to block everything except one div. I tried $('div.grid_12').not('#mydiv').block({ message: null }); and everything still gets blocked.Weekday
@codecowboy: Seems like that'd be a good candidate for a new question :)Woolfell
R
2
$.blockUI({
  message: $("#divid"),

  css: {
    position: 'absolute',
  }
});
Rarefy answered 10/4, 2013 at 7:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.