Frontend Masters Boost RSS Feed https://frontendmasters.com/blog Helping Your Journey to Senior Developer Tue, 19 Dec 2023 21:34:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 225069128 šŸš« Multiple Selects https://frontendmasters.com/blog/%f0%9f%9a%ab-multiple-selects/ https://frontendmasters.com/blog/%f0%9f%9a%ab-multiple-selects/#respond Tue, 19 Dec 2023 21:34:06 +0000 https://frontendmasters.com/blog/?p=295 Ā should pretty much never be used. It’s like the polar opposite of singleĀ <select>, where instead of universal familiarity, it has universal unfamiliarity. Perhaps its only saving grace is that I have yet to encounter this attribute in any codebase. HTML: The Bad Parts It’s pretty fair to say that […]]]> A good point by Mayank:

TheĀ multipleĀ attribute onĀ <select>Ā should pretty much never be used. It’s like the polar opposite of singleĀ <select>, where instead of universal familiarity, it has universal unfamiliarity. Perhaps its only saving grace is that I have yet to encounter this attribute in any codebase.

HTML: The Bad Parts

It’s pretty fair to say that everyone knows how to use a native select element. But add that one little attribute, <select multiple>, and now hardly anyone knows how it works. It turns into a weird box UI that you rarely see, and you just need to know how it works. I had to test, and it seems on my machine holding the shift or command key will allow you turn on/off multiple options, but I wouldn’t be surprised if that varied from machine to machine and keyboard to keyboard, and it’s a totally different look/experience on mobile OSs.

]]>
https://frontendmasters.com/blog/%f0%9f%9a%ab-multiple-selects/feed/ 0 295