bmgz wrote:
> I want to just be able to use className, but when I uncheck a row I am
> having difficulty restoring the original (when the page loaded)
> className, I need to do this because the rows have different styles
>
> Is their any other way to access the original className of an element?
I don't think so, once you manipulate className the initial value is
gone so you need to store it before changing it and restore it back when
needed e.g.
function setClassName (element, className) {
element.previousClassName = element.className;
element.className = className;
}
function unsetClassName (element) {
if (typeof element.previousClassName == 'string') {
element.className = element.previousClassName;
}
}
--
Martin Honnen
http://JavaScript.FAQTs.com/