I have used a javascript to show div by onclick but when i click outside div i want to hide the div. How to do it in javascript? i\'m using javascript code..
Use jQuery and this will be as easy as:
$("button.hide").click(function(event){ $("div.hidethis").hide() });