Not sure if this is entirely a CSS issue but I have defined the class below
in CSS.
If I am stretching the friendship then I apologise in advance.
I am trying to write a javascript script to check that all required fields
in a form are entered.
The idea was to give all required input fields a class of say "mandatory"
and then check for fileds with .className=="mandatory"
But ... the class does not seem to be accessible
In HTML I have for example ...
<input class="mandatory" name="fax" type="text" id="fax" />
To test in javascript I have set tempobj to point at the element then
......
alert (tempobj.name);
alert (tempobj.className);
......
the first alert displays "fax"
the second alert displays null.
Can anyone suggest what I'm doing wrong?
Cheers.
rockoyster