Blur Event Does not get Fired in IE7 and IE6

后端 未结 6 1277
不思量自难忘°
不思量自难忘° 2021-01-02 22:28

I have a dropdown Menu where in a div is clicked and List is shown.

On focus out I am supposed to hide the list(i.e. when the user clicks or focuses on some other e

6条回答
  •  无人及你
    2021-01-02 22:53

    Try:

    $('.selected_option').bind('blur', function(){           
              alert('blurred');
    });
    

    Also you can make another trick - handle all mouse clicks or/and focus events and if some another control is selected, then your own is blurred (of course if it was selected previously).

提交回复
热议问题