⬆️ ⬇️

ikSelect - the perfect plugin for styling selektov

About a year ago, I already did a detailed review of jQuery plug-ins for styling selects . The result was disappointing, each of them had its own shortcomings, and I could not find what I wanted. Quite a few developers have unsubscribed in the comments, but we all agreed that there is no perfect plug-in, and that you have to work well on any of them with a file.



Recently, on Habré , Selectik was a pretty good plugin, but not without flaws . Judging by GitHub , work on it is still underway, but for now it is not very convenient, and its main problems still have a place to be.



Recently, a stranger wrote to me and asked me to test his ikSelect plugin, which he tried to write as close to the ideal as possible. I liked the plugin so much that after extensive testing and bugfixing, I decided to write a review of it and put an end to this topic, and also help an intelligent developer get on Habr.

')

In a nutshell: it can do almost everything that a standard select can do, while it is perfectly styled and adapts to the specifics of implementing different browsers. The plugin completely copies the look of the native Mac OS X select, but it can easily be styled via css.



This is how it looks closed:



So in the open:

What is it better than others?



Volume: 11KB



Advantages:

Disadvantages:



Mobile browsers



The plugin stylizes the field itself, but when clicked, causes the browser's native behavior. Tested on iOS (Safari) and Android (2.3 native, Firefox):







In Opera mini, standard selections remain, to avoid reloading the page when opening the list. In Opera mobile works the same as in the desktop version.



findings

Links

Found bugs can be left in the comments, or on GitHub .



PS Thanks for the invite sent to the author of the i10k plugin.

Source: https://habr.com/ru/post/139388/



All Articles