Related questions
The blur event is invoked when focus vanishes, for example the visitor clicks on another location on the screen.
$('.yo-input').focusout(function(){ /* Yo code here */ });
Find more questions by tags HTMLJavaScript