In the new version of Select2 4.0 the focus event has been removed. how can I put it into practice or how can I make it work? Since I have been trying to do it myself.
I have found the solution to your problem! I have modified the file Select2.js by adding the focus event, yet i have done so by naming the event "focus2". here there is a piece of code that may help you: $(your select).select2("focus2");
You can also use the following link: https://drive.google.com/open?id=0B2ESV1Ec1mMTfkNrOVptTUlBbXdnNkJKckNiQUZ3RmJ6UjdncFRwNUR5ZEJzQm40aXM4c2M&authuser=0
Regards!