$(document).ready(function () {
$(".btn-slide").focus(function () {
$("#moresearch").show("fast");
$(".btn-slide").blur(function () {
$("#moresearch").hide("fast");
});
});
});
In this sample .btn-slide
is my textbox. When it is focused the moresearch
div is shown. When it is blured that div hides.
The problem is that when I click on the moresearch
div, the div closes, but it should only close when one clicks outside.