-
Form field with text
I am using several form fields with instructional text within the field.
This text will be overwritten with the actual entry by the site visitor. Is
there any way to make this "instructional" text a different color (say a
light grey) and yet still have entered text entry be black?
Janice
-
Re: Form field with text
On 26/02/2010 16:50, JWebStuff wrote:
> I am using several form fields with instructional text within the field.
> This text will be overwritten with the actual entry by the site visitor. Is
> there any way to make this "instructional" text a different color (say a
> light grey) and yet still have entered text entry be black?
>
> Janice
>
>
Try this:
1) Set the CSS text colour to be light grey or whatever.
2) For the form field, edit the HTML and add this inside the tag:
onclick="this.style.color='black'; this.value=''"
When the user clicks in to the box, the instructional text will clear
(this.value='') and the text color will set to black
(this.style.color='black').
HTH,
Derek
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules