Safari allows via the attribute placeholder="Type something here" to show text into the value of a input field until it's clicked. But this works only for Safari. Is there a solution for all "modern" Browsers without tons of JS code?

1 answer

orta 244

Not really, there's some JS code here that adds the placeholder value in the other browsers, and it's all automated.

Answered almost 10 years ago by orta
  • Also thanks! I didn't know this existed before researching your question. orta almost 10 years ago
  • This peace of code from works fine, thanks! Roland Schulz almost 10 years ago