javascriptjquery-select2zepto

Using select2 plugin with Zepto


The problem

For my project I use Zepto, but I would like to use the select2 plugin for my select input elements. According to this issuethis pull request it should be possibel, yet I couldn't manage to do it. I usually get the error "jQuery not defined"

What I have

What I tried

Anyone else encountered this problem before or know how to solve it? It would be greatly appreciated. Thanks.


Solution

  • Soo. I posted the question to GitHub as an issue, and the creator of the plugin Igor Vaynberg said that I misunderstood the linked issues, as they didn't mean select2 woud support Zepto, they only meant it will be easier to support, if it will be supported some time in the future.

    For Igor's answer see this comment. I might try and implement this myself, if my time permits it, and if I do I will edit this answer also.