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.
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.