gfranko / jquery.selectBoxIt.js

A jQuery Select Box Plugin for Mobile, Tablet, and Desktop
http://www.selectboxit.com
MIT License
852 stars 301 forks source link

Focus event not working on SelectBoxIt? #364

Open matcwhite opened 8 years ago

matcwhite commented 8 years ago

Hello,

I cannot seem to get the .focus() event to trigger on my SelectBoxIts, nor can I set the focus to the SelectBoxIt. I've tried the following: `$(function () {

$("select").selectBoxIt({ autoWidth: "true" });

$("select#level1_select").focus(function(){ alert('focused'); }); $("select#level1_selectSelectBoxIt").focus(function(){ alert('focused'); }); $("select#level1_select").change(function(){ alert('changed'); });

});`

The change() event seems to work fine, but neither of the focus() events seem to do anything. What could I be doing wrong? I'm sure it must be something glaringly obvious.

Thanks, Mat

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35004249-focus-event-not-working-on-selectboxit?utm_campaign=plugin&utm_content=tracker%2F23157&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23157&utm_medium=issues&utm_source=github).