javascript thread: Text area, and text font or background color...
Ok,
This seems to work, but not in NC 4.x
I am using;
eval
("document."+CurForm.name+"."+CurField.name).style.backgroundColor="yellow"
;
Where CurField and CurForm are objects pointing to the current field &
form respectively.
Is there a way that will that will work in NC 4.x?
Paul
> You can create a CSS class that defines the look you want for the
element,
> then its just a matter of
>
> oElement.className="newclass";
>
> or if its only one thing you want to modify, in this case background
color
>
> oElement.style.backgroundColor="red";
>
> -----Original Message-----
> From: Paul Stearns [mailto:pauls@c...]
> Sent: 22 June 2001 12:06
> To: javascript
> Subject: [javascript] Text area, and text font or background color...
>
>
> Is there a method or object which will allow the change of the
> background color or font color of an <input> tag with type="textarea"
> and
> type="text". I have a generalized validation routine which when called
> from an onSubmit, would like to indicate which fields need correction.
>
> It would also be nice to be able to do something to radio buttons for
> the same purpose.
>
>