One of the nice enhancement in HTML5 web form is being able to add placeholder text to input fields. Placeholder attribute allows you to display text in a form input when it is empty and when it is not focused (it clears the field on focus). This is a nifty feature, but it is not [...]
View full post on Web Designer Wall – Design Trends and Tutorials
Vancouver graphic design, Vancouver web design, Vancouver seo, Vancouver internet marketing, Vancouver social media, web design Vancouver
Incoming search terms:
- Published News Upcoming News Submit a New Story Groups high school physics lesson plans
- Powered by Article Dashboard physics formulas
- Powered by Article Dashboard physics equations
- Powered by Article Dashboard art work
- Powered by Article Dashboard science project display
- Powered by Article Dashboard myspace graphics and comments
- Powered by Article Dashboard child art models
- Powered by Article Dashboard college physics formulas
- Powered by Article Dashboard myspace music video
- Published News Upcoming News Submit a New Story Groups fine art supplies
- ie9 placeholder
- Published News Upcoming News Submit a New Story Groups back in black tab
- Powered by Article Dashboard nail art galleries
- Powered by Article Dashboard fine art museum
- Published News Upcoming News Submit a New Story Groups beauty standards
- Powered by Article Dashboard aquarium supplies
- Powered by Article Dashboard internet explorer
- Powered by Article Dashboard physics formulas time
- placeholder ie9
- Published News Upcoming News Submit a New Story Groups www myspace
- Published News Upcoming News Submit a New Story Groups fine art photography children
- Published News Upcoming News Submit a New Story Groups american general loans
- Powered by Article Dashboard art models
- Powered by Article Dashboard internet explorer help
- Powered by Article Dashboard american medicine
- Powered by Article Dashboard football workout plans
- Powered by Article Dashboard ancient philosophy
- Powered by Article Dashboard japanese beauties
- Powered by Article Dashboard explore
- placeholder ie
- Published News Upcoming News Submit a New Story Groups classical music downloads
- Powered by Article Dashboard myspace page
- Powered by Article Dashboard country music radio charts
- Powered by Article Dashboard football weight training program
- Powered by Article Dashboard system software and application software
- Powered by Article Dashboard american general financing
- Published News Upcoming News Submit a New Story Groups credit check loan
- Powered by Article Dashboard american general financial
- Powered by Article Dashboard myspace page graphics
- Powered by Article Dashboard american general car insurance
- Powered by Article Dashboard internet explorer fix
- Powered by Article Dashboard alcohol recovery without support groups
- Powered by Article Dashboard japanese child models
- Published News Upcoming News Submit a New Story Groups bedding set
- Powered by Article Dashboard loans for people with bad credit in
- Powered by Article Dashboard trailer park
- Powered by Article Dashboard online personal loan
- Powered by Article Dashboard what type loans for american general finance
- Published News Upcoming News Submit a New Story Groups decorative artist georgia aquarium
- Powered by Article Dashboard drugs online from mexico
- Powered by Article Dashboard army drug and alcohol
- Powered by Article Dashboard bible story
- Published News Upcoming News Submit a New Story Groups ga child support
- Powered by Article Dashboard loans for people with poor credit
- Powered by Article Dashboard alcoholism problem
- Powered by Article Dashboard alcoholism drug treatment
- Powered by Article Dashboard drug and alcohol addiction
- Powered by Article Dashboard phones no credit check
- Powered by Article Dashboard explorer fix
- Powered by Article Dashboard bodybuilding forums
- Powered by Article Dashboard car loans for people with bad credit
- Published News Upcoming News Submit a New Story Groups american general financial
- Published News Upcoming News Submit a New Story Groups addiction and
- placeholder text in input fields internet explorer
- Powered by Article Dashboard support groups for cancer
- Published News Upcoming News Submit a New Story Groups tab
- Published News Upcoming News Submit a New Story Groups alcoholism chart
- Powered by Article Dashboard trailer
- ie9 html5 placeholder
- Published News Upcoming News Submit a New Story Groups alcoholism and drug
- Powered by Article Dashboard alcohol and drug addiction
- Powered by Article Dashboard indian beauties
- Powered by Article Dashboard court system
- Published News Upcoming News Submit a New Story Groups bad credit car finance
- Powered by Article Dashboard de young museum
- Powered by Article Dashboard georgia car insurance
- Published News Upcoming News Submit a New Story Groups loans without credit check
- Published News Upcoming News Submit a New Story Groups california legal forms
- Powered by Article Dashboard american general credit
- Powered by Article Dashboard free ga legal forms
- working placeholder ie9
- Published News Upcoming News Submit a New Story Groups alcohol recovery without support groups
- Published News Upcoming News Submit a New Story Groups seattle aquarium coupons
- Published News Upcoming News Submit a New Story Groups personal loan no credit check
- Published News Upcoming News Submit a New Story Groups legal forms
- Published News Upcoming News Submit a New Story Groups personal loans for people with bad credit
- Published News Upcoming News Submit a New Story Groups court case
- Powered by Article Dashboard us court system
- Powered by Article Dashboard bible lesson
- Powered by Article Dashboard bad credit loan
- Powered by Article Dashboard attribute data
- html form placeholder for ie9
- Powered by Article Dashboard american general finance phone number
- Powered by Article Dashboard american general finance company
- Powered by Article Dashboard a personal loan
- placeholder text not working in IE9
- placeholder field ie9
- IE9 Placeholder Text
- IE9 Placeholder Attribute
- Powered by Article Dashboard car insurance young people
That’s all very well, but why not just use the jQuery code and not bother with the HTML5? This would mean you don’t have to add modernizr to your page load.
The JS could be better. In general, avoid to select twice the same DOM elements. Store stuff in variables if nesseserly. And you should use ‘===’ instead of ‘==’ and i wonder why you need a second .blur() after the .blur()…
Thanks for the helpfull article.
I believe it’s quite common to remove the ‘Chrome’ borders of input boxes with outline:none (on the :focus) state. What’s the difference between this method and input[type="search"]::-webkit-search-decoration?
what about password input?
I fail to see how this is better than value.
I agree with Doug Neiner here, I think label is still required in web form. Label and placeholder serve two different purposes. Placeholder is not equal to label.
The entire point of my demo is just to show placeholder (not web standard form). Hence I didn’t even put a submit button in the form.
You might be interested in “Formalize CSS”
http://formalize.me/
It also removes the placeholder text, if you submit the formular, so there is no wrong data submitted.
Jonathan, but they serve completely different needs. Even though the HTML5 spec isn’t finalized, the goal of a placeholder is quite different than a label. A label also provides screen-readers with essential information about the field. I am not sure how they do with placeholders. Even though web standards have been widely adopted, mis-using an attribute or element is just as bad as it ever was.
Well Jonathan, I think that’s different with every person.
Personally I really really hate it when my label is gone on focus. Because I tab all my forms, I don’t see what type of input is needed in the next inputfield.
So I have to make 2 extra tabs, to see what inputfield I have when there is no seperate label.
But hey, that’s me of course
I think it’s fine to use placeholders as a replacement of labels, it’s cleaner and more condensed. It’s not apart of yesterdays semantic web, but i think tomorrow it should be.
That’s a debate I’ve had with a few people, too many treat it like a label where as a placeholder should simply show the format of an input and not be it’s label.
Though my comment here doesn’t change the *technical* aspect of the post (providing a fallback for placeholder), I think there is a large problem with the use case of the placeholder.
There is a difference between the HTML5 placeholder, and what I call an in-field label (What you are actually showing in this post). The placeholder is supposed to show *how* the user should input data. An in-field label serves the same purpose as a real label, only it appears in (or over) the field.
Here are some examples of the difference:
Label: Email
Placeholder: you@yourname.com
Label: Phone number
Placeholder: 413-123-4567
Just because the HTML5 placeholder looks like in-field labels we see around, it doesn’t serve the same purpose. If you plan to use the placeholder attribute, you should probably also provide a label.
This is a useful resource for seeing what attributes are supported by the modern browsers when styling the placeholder.
http://blog.ajcw.com/2011/02/styling-the-html5-placeholder/
It’s not possible to style the placeholder at all in IE9, Opera 10 (and below) or Firefox 3.6, and the rest also have mixed support.
I read your post Dave, but I think it’s fine to use it. Only thing I could think of is if you don’t have a seperate label, an older browser, and no Javascript enabled. You don’t see any hints about the field. But hey, who doesn’t have Javascript these days.
But I think it’s just great to use this new feature.
That’s a great feature. Last week I made something like that, but than for Mootools cause I like it better:
http://codeviewer.org/view/code:18cf
But it’s a powerfull css feature
I posted something similar a while ago on my own blog
http://www.kamikazemusic.com/quick-tips/jquery-html5-placeholder-fix/
There were concerns raised in the comments about the accessibility of injecting text into the val attribute, personally I think used sensibly and as long as the text is injected with JavaScript then it should be fine, maybe some readers here have a different view?