javascript - Jquery two elements, toggles on focus/click ... works but lags -


This works as I want but there is a noticeable delay, if a brother element focus / click Any ideas?

Try it:

Focus event is sent to an element When it gets the focus, this event element ( & lt; Input & gt;, & lt; Select & gt ;, etc.), And link ( & lt; a href & gt; ; ).

  $ ('# ooo'). Bind ('Focus Click', function () {$ ('# kkk'). Text ('Hello');}); $ ('# Ooo'). Blur (function () {// You can use 'Blur' handler $ ('# kkk') empty ();});   



Comments