...

View Full Version : show hide debug



esthera
09-09-2008, 11:47 AM
my javascript is

if(radio1 == 'AM and PM')
{
document.getElementById("am").style.display = 'none';
document.getElementById("pm").style.display = 'none';
}
else if(radio1 == 'AM Only')
{
document.getElementById("am").style.display = 'none';
document.getElementById("pm").style.display.display = 'block';
//alert("am only");
}

for some reason though if on my form i choose AM and PM and then switch to AM only it doesn't re show the pm div. is there something in my code that im ding wrong to get them to redisplay?

abduraooft
09-09-2008, 12:03 PM
document.getElementById("pm").style.display.display = 'block';
Any clue?

esthera
09-09-2008, 12:32 PM
thanks..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum