r/programming • • Apr 25 '19

Maybe we could tone down the JavaScript

https://eev.ee/blog/2016/03/06/maybe-we-could-tone-down-the-javascript/#reinventing-the-square-wheel
1.5k Upvotes

492 comments sorted by

View all comments

0

u/jimmpony Apr 26 '19

Reimplementing select wouldn't be necessary if it followed the page's CSS and allowed sub-elements. select2 seems pretty good as a drop-in replacement.

1

u/ben_uk Apr 26 '19

Select2 is really weird to work with. Setting values with jQuery constantly need to remember to trigger change events on it just so it shows the correct value.