jQuery trigger range input field on focusin/focusout

jQuery trigger range input field on focusin/focusout

I am trying to catch the focusin and focusout events in a range input field type.

In Firefox 41, Chrome 46, IE 11 and Opera 33 it is working (it is sent to console in and out respectively) but not in Safari 5 and Mac OS X 10.9 with Safari 7.

Am I missing something?


HTML

  1. <input id="slider" type="range" min="100" max="500" step="10" />


Script

  1. $ ( 'input[type="range"]' ). on ( "focusin" , function (){
  2.       console . log ( 'in' );
  3. }). on ( "focusout" , function (){
  4.       console . log ( 'out' );
  5. });
Thanks.