How can I make a jquery styleBox trigger when focused using tab?
I have some styleBox elements that aren't triggering when I tab through the items. Does the change() also get trig开发者_StackOverflowgered on focus?
From the jQuery documentation for .change()
:
For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element loses focus.
See here for details.
May be better to use .focus()
if you can.
精彩评论