...

View Full Version : div.style is null or not object?



sir pannels
12-26-2006, 06:25 PM
hi again all,

On click the following function runs:


function ddiv14() {
ddiv14.style.display='';
}

I get an error saying that ddiv14.style is null or not an object ... I dont understand, it is blank above but that is so that I can show the div after it has been display=none.

any thoughts?
many thanks :)

Mr J
12-26-2006, 06:39 PM
You should be referencing as

document.getElementById("ddiv14").style.display='';


It could also be that you are also using ddiv14 as the function name, change the function name



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum