TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Helptext.js

6 pointsby luckydevover 13 years ago
jQuery plugin to have help text in the form elements

3 comments

richbradshawover 13 years ago
Why wouldn't you use the placeholder, attribute, then detect support, then use a fallback if needed... Something like:<p>function hasPlaceholder() { var input = document.createElement('input'); return ('placeholder' in input); }<p>should do the job to detect support.
评论 #3115007 未加载
评论 #3115179 未加载
koblasover 13 years ago
Not sure why... in-field labels are a better approach. <a href="http://bit.ly/r4vVAa" rel="nofollow">http://bit.ly/r4vVAa</a> Plus the placeholder attribute is the long term.
Vekzover 13 years ago
What if I want my password field to say 'password', and on focus to be obscured with dots?