6 ms·
Sometimes those interesting features are not easy to find. When looking up on how to do something for the web, one get tons of answers describing how to do it
by bondant 5y ago
Sometimes those interesting features are not easy to find.
When looking up on how to do something for the web, one get tons of answers describing how to do it with javascript and usually with js frameworks. The simple methods (which do not cover all cases but are sometimes enough) are usually buried under.
So unless beginner learn by heart all the html tags (and that is not beginner friendly) they won't know those basic features, so I think that's cool to have a reminder.
- salzig 5y agoAbsolutly, that was exact the feeling when i realised that datalist exist. How on earth could i miss that? The Internet is getting more and more "sources", but all of them seem to be almost direct copies of already existing source of information, just with a different layout.
- tannhaeuser 5y agoI'm not a fan of the whole WHATWG spec/process, but it has datalist and other not-so-well-known elements covered. If you prefer a succinct reference (rather than the full browser-melting spec), there are other other sources than WHATWG's spec or MDN helping with discoverability, such as mine (as a proper SGML DTD grammar, no less) [1]. [1]: <http://sgmljs.net/docs/w3c-html52-dtd.html http://sgmljs.net/docs/w3c-html52-dtd.html>
- rplnt 5y agoI absolutely hate the web dev community. Any HTML or JS related question was answered by "just use jquery" for maybe a decade.
- colejohnson66 5y agoThe jQuery cliche was such a meme: https://imgur.com/Q3mkcnl.gif https://imgur.com/Q3mkcnl.gif
- jonnycomputer 5y agoYeah, I didn't now about data-* attributes until about two years ago. I quickly leveraged it to make creating forms with branching less of hassle: instead of relying on complicated state to hide and show different divs, I simply used data-next and data-previous attributes to govern navigation through the tree.
- varrock 5y agoWhen you say branching, are you talking about a dynamic input, e.g., an email text input that appears after a subscribe checkbox is selected?
- jonnycomputer 5y agoWhen there are dependencies between questions in a form (e.g. only ask for date married if answered yes to married). Its confusing if those elements are visible when not needed, so yeah, becomes dynamic. Also, I used "tree" loosely. I meant something closer to a DAG.