Hi there,
In my form, after validation, labels of wrong
fields are turned into a red color.
What i want now is when you hit 'reset', to make all
the labels grey again.
I have the next code:
=============== =============== ========
function GrayLabels()
{
var label;
label = document.getEle mentById(label) ;
if (label && label.style) {
label.style.col or = '#A2A2A2';
};
=============== =============== =========
So reset will have onClick="GrayLa bels()" in it. But how
do i automatically apply this to everey label in the document?
Hope this is clear enough and thanks in advance..
Greetings
In my form, after validation, labels of wrong
fields are turned into a red color.
What i want now is when you hit 'reset', to make all
the labels grey again.
I have the next code:
=============== =============== ========
function GrayLabels()
{
var label;
label = document.getEle mentById(label) ;
if (label && label.style) {
label.style.col or = '#A2A2A2';
};
=============== =============== =========
So reset will have onClick="GrayLa bels()" in it. But how
do i automatically apply this to everey label in the document?
Hope this is clear enough and thanks in advance..
Greetings
Comment