Sometimes showing a jQuery Dialog in a scrolling page sucks so to hide scroll bars(prevent scrolling) use the following code.
HTH
$( ".selector" ).dialog({
open: function(event, ui) { jQuery("#Body").css("overflow", "hidden"); },
close: function () { jQuery("#Body").css("overflow", "auto"); }
});
No comments:
Post a Comment