var flag = false;
$('div.stop').click(function() {flag = true;});
textInput.focusout(function() {
// So long you didn't click div.stop, then
if(!flag)
$('div.box').hide();
});
フラグ変数の追加を避けたい場合は、jQuery の.datadiv.stop
を使用して、要素などに対してフラグ値を保存できます。
$('div.stop').click(function() {$(this).data('clicked', true);});
// ...
if(!$('div.stop').data('clicked'))
// ...
編集
テキスト ボックスにフォーカスがあり、[ ] をクリックする状況を許容しdiv.stop
たい場合、非表示にしたくない場合は、次のような方法を試してください。
$('div.stop').click(function() {$('div.box').stop();});
textInput.focusout(function() {
// So long you didn't click div.stop, then
$('div.box').delay(200).hide();
});