robbiez
07-16-2008, 03:17 PM
Included in the shopping cart software I use is the following function:
function idShowHide(obj) {
var el = document.getElementById(obj);
if ( el.style.display != "none" ) {
el.style.display = 'none';
} else {
el.style.display = 'block';
}
}
The function creates a Show/Hide link for many items within the admin side of the site.
The problem is the default is always SHOW.
Does anybody know how I can change the default to HIDE, or even better for the function to remember the last setting from the last visit.
Thanks in advance
Rob
function idShowHide(obj) {
var el = document.getElementById(obj);
if ( el.style.display != "none" ) {
el.style.display = 'none';
} else {
el.style.display = 'block';
}
}
The function creates a Show/Hide link for many items within the admin side of the site.
The problem is the default is always SHOW.
Does anybody know how I can change the default to HIDE, or even better for the function to remember the last setting from the last visit.
Thanks in advance
Rob