I have a floating div that gets displayed, and I want it to be hidden when the user clicks off the div. This would be similar to the .hover() function callback when hoverin
example you click a link element to display div menu , you simply bind blur function to link element to hide div menu
$('a#displaymenu').click(function(){ $("#divName").toggle(); }).blur(function() {$("#divName").hide()})