/ Published in: jQuery

Plugin to get and set Element#style.display (e.g. "none" or "")
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.fn.display = function(setTo) { if (setTo) { return this.each(function(i, el) { el.style.display = setTo; }); } if (!0 in this) { return false; } return this[0].style.display; };
Comments
