$(document).on("focusin", $selector, function (){
$(this).on("focusout", function (){
console.log("focusout");
});
});
var funclist={};
funclist['myFunc']= function(){
//do some
}
funclist['myFunc1']= function(){
//do some
}
var current= 'myFunc';
funclist[current]();