Hi everyone,
Im having some issues with a website that im working on.
The website have mysql database and all of the server side code is done in php, therefor all of the files are named with a .php extension,
I know it shouldn't make any different but for some reason i can't access the document elements using javascript... im not a js expert but i know the basics and i use it mostly for forms validation, but every time i try to use getElementById, i get nothing back, when i try to use alert and reference it i get null....
That's my js file
// Registration From Validation
window.onload = initForm();
function initForm(){
document.getElementById("errorBox").style.visible = "hidden";
}
It's an external file but it's embedded properly, and im sure of that
because the alert function is working....
Please note that getElementById doesn't work on anything....
I tried all of my document id's and i can't change any property
or create new information in any of those id's.
I'm pretty frustrated by now and help will be appreciated...
Thanks