jquery - How to know where the input/element goes to after the blur event? -


this question has answer here:

i tried this, undefined:

alert($(ev.relatedtarget).attr('name')); 

i have combobox (textbox , button), don't want code continue processing if input goes partner control(button). want detect textbox blur leaving whole combobox not textbox. textbox's blur naturally trigger when click partner button. ideal logic can think of detect textbox's blur focus destination not partner button, if relatedtarget partner button don't continue processing.

if understand question correctly, i'd suggest adding delayed function on blur event of textbox check if button focused or not


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -