I have a JavaScript that displays a DIV (sets its display css property from \'none\' to \'normal\'. Is there a way to give it focus as well so that when I click somewhere else o
With jQuery you can hide elements with hide(), ex: $("#foo").hide()
hide()
$("#foo").hide()
Hide element in event listener:
$("#foo").blur(function() { $("#foo").hide(); });