With Jquery, focusout is just called when you click anywhere out of the focused area when \"focusout\" is set.
How do I exclude some id(s) from activiting the \"focusou
You can unbind the focusout when you click on a div. This may return some expected results, and at some point in your code you'll probably want to rebind it. See here for an example: http://jsfiddle.net/hdCFA/
$("input").on("focus", function() {
$(".hidden").show();
});
$("input").on("focusout",function() {
$(".hidden").hide();
});
$(".clickable").on("mousedown", function() {
$("input").unbind("focusout");
});
HTML:
Hidden div
Click me
CSS:
.clickable { background:blue; }
.hidden {
display:none;
}