Microsoft
Software
Hardware
Network
Question : Javascript visiblity
I'm trying to write a simiple function that makes a div visible or invisible in Javascript,
Please show me whats wrong with this code
type=radio name="address_type" value="1" checked onClick="showHide('box');"
>
Postal
Box
The Postal Box fields here
Answer : Javascript visiblity
You got to much code there for that.
Here this guy will tell you 7 ways
http://www.dustindiaz.com/
seven-togg
lers/
something like this is all you need
function toggle(obj) {
var el = document.getElementById(ob
j);
if ( el.style.display != 'none' ) {
el.style.display = 'none';
}
else {
el.style.display = '';
}
}
also make sure you're using a javascript bugger. You're going to have a lot of headaches if you're debugging javascript by watching for the little script error icon. At least use FF's script debugger.
Random Solutions
SQL Server 2005/SharePoint Logs getting too big
Cache Hit Ratio Sysperfinfo
Pausing a load using Loader object?
User Constantly Getting Dupe Calendar Items, Missing Items and Other Issues with Scheduled Events
Setting up trial version Ghost Solution Suite 2.5
cdr101 not ready reading drive d: abort retry fail?
Ho do I Convert an eight digit number/general formatting to date?
How to clone Windows 2000 system
Your account is configured to prevent you from using this computer. Please try another computer.
Postfix sendmail_path in php.ini