Page 2 of 2

Posted: Tue Nov 08, 2005 1:12 am
by n00b Saibot
Just play around with that snippet. it'll come around :wink:

Posted: Tue Nov 08, 2005 7:53 pm
by facets
Is something like this on the right track?

if (ProdServList[val] == 'Service') {
document.write('onload=\"javascript:hidediv()\"');
}

Posted: Wed Nov 09, 2005 4:06 am
by n00b Saibot
yeah! but a little change reqd. :)

Code: Select all

Service = document.getElementById('serviceDiv');
Product = document.getElementById('productDiv');
if (ProdServList[val] == 'Service')
{ 
 Service.style.display = "";
 Product.style.display = "none";
} 
else
{ 
 Service.style.display = "none";
 Product.style.display = "";
}