我希望#result 将隐藏在#search_form 之外的发送点击。我尝试使用focusout,但它不起作用。
<div id="search_form">
<form method="post" onsubmit="return checkForm(this.form)">
<div class="search padding">
<input type="text" id="searchbox" name="manga_name" class="input" value="Tìm truyện muốn đọc ..." onfocus="if (value =='Tìm truyện muốn đọc ...'){value =''}" onblur="if (value ==''){value='Tìm truyện muốn đọc ...'}" onkeyup="keyup();"/>
<input type="submit" value=" " id="searchsubmit" class="go"/>
</div>
</form>
<div id="result"></div>
</div>
<script>
$("#search_form").focusout(function() {
$('#result').html('');
$('#result').css('display', 'none');
});
</script>