Label Appearance after FormCheck

K

knoak

Hi there,

I have a form and a validation with that.
Now i wonder, what's the way to manipulate
a label's appearance?

i want to change the color of certain label's
if their fields appear to be invalid...

Hope this is clear enough.

Greetings Knoak
 
M

Martin Honnen

knoak wrote:

I have a form and a validation with that.
Now i wonder, what's the way to manipulate
a label's appearance?

i want to change the color of certain label's
if their fields appear to be invalid...

Use CSS to manipulate the presentation of an element e.g.
<label id="aLabel">...</label>

var label;
if (document.getElementById) {
label = document.getElementById('aLabel');
if (label && label.style) {
label.style.color = 'red';
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top