4 ms·
Apparently Chosen takes the placeholder text from the select element's 'title' attribute; does it also support the official HTML5 syntax[1] for placeholder attr
by thristian 15y ago
Apparently Chosen takes the placeholder text from the select element's 'title' attribute; does it also support the official HTML5 syntax[1] for placeholder attributes in select elements?
How about integration with jQueryUI's theming system?
[1]: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#placeholder-label-option http://www.whatwg.org/specs/web-apps/current-work/multipage/...
- philfreo 15y agoIt'd be better if it looked for the HTML5 "placeholder" attribute even in older browsers rather than having to use "title" also. Some JS plugins [1] do this to replicate placeholder support in older browsers and I don't think there's any downside. [1] https://github.com/mathiasbynens/Placeholder-jQuery-Plugin https://github.com/mathiasbynens/Placeholder-jQuery-Plugin
- edoloughlin 15y agodoes it also support the official HTML5 syntax[1] for placeholder attributes in select elements? I'd be impressed if it does. I can't parse that sentence in the spec.
- thristian 15y agoThe markup it describes is basically: <select required> <option value="">Placeholder Text Here</option> <option value="1">first real option</option> </select> The rest of the text basically says that select elements that are not required don't have placeholder text; that select elements that allow multiple selections don't have placeholder text; multi-line select elements don't have placeholder text, and that if the first option is inside an optgroup element, it doesn't count as placeholder text.