focusout

How to exclude Id from focusout

限于喜欢 提交于 2019-12-02 04:24:02
With Jquery, focusout is just called when you click anywhere out of the focused area when "focusout" is set. How do I exclude some id(s) from activiting the "focusout" function. ? e.g here. You have an input text field ( id="A")that hides some div on focus and shows that very div when it's out of focus, so but now it obviously will show the div when you click anywhere out of this ("#A") input field. Question is, how do you set some id(maybe a select field(Id="B" next to it), not to fire off the "focusout" function. Hope it makes sense. Try using relatedTarget event property: $('#id').focusout

How to exclude Id from focusout

一曲冷凌霜 提交于 2019-12-02 03:54:25
问题 With Jquery, focusout is just called when you click anywhere out of the focused area when "focusout" is set. How do I exclude some id(s) from activiting the "focusout" function. ? e.g here. You have an input text field ( id="A")that hides some div on focus and shows that very div when it's out of focus, so but now it obviously will show the div when you click anywhere out of this ("#A") input field. Question is, how do you set some id(maybe a select field(Id="B" next to it), not to fire off

jquery need alternative to focusout()

こ雲淡風輕ζ 提交于 2019-11-27 20:15:15
Given the sample markup: <div> <input /> <input /> <input /> </div> How can one, via jQuery, determine that div has lost focus? I can use focusout() but that's not quite what I need. With focusout, it will get triggered as one tabs from input to input, as it's actually detecting (via event bubbling) that the input is losing focus. Another way to word the requirement: I need to know when focus has moved OUTSIDE of the div. I asked a similar question before: jquery focusin() and preventing bubbling But that was related to a pop-up UI and one can get around that by inserting a blank DIV behind it

jquery need alternative to focusout()

一世执手 提交于 2019-11-26 20:14:56
问题 Given the sample markup: <div> <input /> <input /> <input /> </div> How can one, via jQuery, determine that div has lost focus? I can use focusout() but that's not quite what I need. With focusout, it will get triggered as one tabs from input to input, as it's actually detecting (via event bubbling) that the input is losing focus. Another way to word the requirement: I need to know when focus has moved OUTSIDE of the div. I asked a similar question before: jquery focusin() and preventing