<?php
$file_data = "Stuff you want to add\n";
$file_data .= file_get_contents('database.txt');
file_put_contents('database.txt', $file_data);
?>
$(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]();