Jul 1, 2011

Visibility plugin for jquery - jquery.vis.js

;(function ($) {

$.fn.hideVis = function () {
return this.each(function () {
$(this).css("visibility", "hidden");
});
};

$.fn.showVis = function () {
return this.each(function () {
$(this).css("visibility", "visible");
});
};

$.fn.vis = function (bool) {
if (bool) {
$(this).showVis();
} else {
$(this).hideVis();
}
};

})(jQuery);

No comments:

Post a Comment