커서 이동 .focus() document.activeelement 해서 비교하자 // 이전 focus 찾기 $(window).on("focusin", function(){ if(window.currFocus != document.activeElement){ window.prevFocus = window.currFocus; window.currFocus = document.activeElement; } }) if([window.prevFocus.name](http://window.prevfocus.name/) == $("input[name=]").attr("name")){