Forms - labels inside fields

AusQB

New Member
I have a form all written out with labels written inside the fields. This may not be the best practice, but I'd like to learn it anyway.

I have a script that clears the field when the user clicks in the field and then repopulates it with the label if they click elsewhere without entering anything.

The problem is that I want the label and regualr text to have different styles. For example, I want the text to be a normal black font while the label should be a smaller, lighter and italic font.

I added a css class to the input tags, but then the script doesn't work.
 

AusQB

New Member
Nevermind, I'm not going down that road anymore.

What I have now is a much more complicated situation. I was looking at a bunch of different form tutorials, and naturally I liked the style of one and the workings of another.

So now I'm faced with finding all the little discrepancies between the elements id's, css and javascript.
 
Top