HTML
<input type="text" id="match1">
<div id="divf">It is a div which has a dark future</div>
<button>Not Remove</button>
とスクリプト
$(function(){
$("input").blur(function()
{
$("#divf").remove();
});
});
コードから明らかなように、入力のぼかしでdivを削除したいのですが、誰かがボタンをクリックしている場合にdivを削除したくないのです。方法がわかりません。誰かがこの問題を解決できますか?