PDA

View Full Version : textfield placeholder


dzwestwindsor
05-20-2010, 12:53 AM
Hey

I have a text-field, and I want there to be some placeholder text there by default.

I know that if I want the text to go away once the user clicks inside the box, that requires some javascript right?

But it's ok, I don't need that. Just some static placeholder in the box. It doens't have to go away when the user clicks on it.

does anybody know how? Thanks

edbr
05-20-2010, 01:27 AM
<input type="text" name="textfield" id="textfield" value="some text" />

dzwestwindsor
05-20-2010, 01:32 AM
thank you sir, u are pretty smart. :D

edbr
05-20-2010, 01:36 AM
not according to people who know me