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/
2.1m questions
2.1m answers
60 comments
57.0k users