Forum Moderators: open
function check_name()
{
//CHECK if NAME empty
if(announce.name.value.length == 0)
{
getID = document.getElementById("error_name");
getID.className = 'yes_error';
}
else
{
getID = document.getElementById('error_name');
getID.className = 'no_error';
}
}
Thanks in advance
function check_tel()
{
//CHECK if telfon empty
if(announce.tel.value.length == 0)
{
getID = document.getElementById('error_tel');
getID.className = 'yes_error';
}
else
{
getID = document.getElementById('error_tel');
getID.className = 'no_error';
}
}
any clue?
Thanks in advance
The problem itself may have nothing to do with script at all. It may be rather that changing the classNames of these elements has no effect in browsers other than IE.
Have you tried using these classNames manually to see if you get the desired effect?