var flag = false;
$('div.stop').click(function() {flag = true;});
textInput.focusout(function() {
if(!flag)
$('div.box').hide();
});
If you want to avoid adding a flag variable, you can use jQuery .data to save the flag value, for example. element div.stopfor example:
$('div.stop').click(function() {$(this).data('clicked', true);});
if(!$('div.stop').data('clicked'))
EDIT
, , div.stop, , , - :
$('div.stop').click(function() {$('div.box').stop();});
textInput.focusout(function() {
$('div.box').delay(200).hide();
});