Html
<input type="text" id="match1">
<div id="divf">It is a div which has a dark future</div>
<button>Not Remove</button>
and script
$(function(){
$("input").blur(function()
{
$("#divf").remove();
});
});
Now as it is clear from code i want the div to be removed on blur on input .But i don’t want div to be removed if someone is clicking on button .I have no idea how to do it.Can somebody solve this problem
If you want to put on just text field having id match1 then div will be removed only when the field has blue
If you want to put on just type text then the div will be removed on blue of every text box