DOM.style = function(property, value){ DOM.each(function(e){ var styles = e.getAttribute('style') || ''; value += is.Numeric(value) ? 'px' : ''; e.setAttribute('style', styles + ' ' + property + ': ' + value + ';'); }); };
DOM.on = function(action, func){ DOM.each(function(e){ e.addEventListener(action, func); }); return this; };
DOM.removeAttr = function(attr) { DOM.each(function(e){ e.removeAttribute(attr); }); return this; };
DOM.attr = function(attr, value) { DOM.each(function(e){ e.setAttribute(attr, ""+value); }); return this; };
DOM.html = function(value) { DOM.each(function(e){ e.innerHTML = value; }); return this; };
DOM.show = function(){ DOM.each(function(e){ e.style.display = ''; }); return this; };
DOM.hide = function(){ DOM.each(function(e){ e.style.display = 'none'; }); return this; };