4 ms·
Speaking of this, what's the simplest way to add in-field labels to an existing form? (Assuming in not worried about the issues in this article)
by tocomment 14y ago
Speaking of this, what's the simplest way to add in-field labels to an existing form?
(Assuming in not worried about the issues in this article)
- xarien 14y agoJust set the placeholder attribute. You'll need some js if you want to support browsers which do not process the attribute. I use Jason Garber's jquery plugin to imitate placeholder for browsers which do not support the attribute.
- talmand 14y agoAre you asking about adding in these labels to an existing form with HTML that you cannot change? Meaning, running Javascript across the form to inject placeholders into the existing fields?
- remybach 14y agoIf you're using jQuery, check out my plugin: https://github.com/remybach/jQuery.superLabels https://github.com/remybach/jQuery.superLabels.