I want to set the placeholder value of an input box using only CSS and no JavaScript or jQuery.
How can I do this?
You can do this for webkit:
#text2::-webkit-input-placeholder::before { color:#666; content:"Line 1A Line 2A Line 3A"; }
http://jsfiddle.net/Z3tFG/1/
1.4m articles
1.4m replys
5 comments
57.0k users