News for hackers. Stuff that matters.
Re:Labels in input fields aren’t such a good idea by tocomment on Monday February 04, 2013 @12:12PM (#5165358)
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)

Re:Labels in input fields aren’t such a good idea by xarien on Monday February 04, 2013 @12:14PM (#5165374)
Just 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.

Re:Labels in input fields aren’t such a good idea by talmand on Monday February 04, 2013 @04:43PM (#5167348)
Are 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?
Re:Labels in input fields aren’t such a good idea by remybach on Tuesday February 05, 2013 @06:47AM (#5170171)
If you're using jQuery, check out my plugin: https://github.com/remybach/jQuery.superLabels.