0

I making auto suggestion box.Autosugestions are displayed in div.I want to hide div id when click outside div id anywhere on page?

user1558284
  • 29
  • 1
  • 1
  • 3
    http://stackoverflow.com/questions/714471/jquery-hide-element-when-clicked-anywhere-on-the-page –  Aug 13 '12 at 06:34

3 Answers3

0

I think you'll need to use javascript for this. JQuery can help you here. Check if this is useful to you: http://jqueryui.com/demos/accordion/

0

Try this

$(document).click(function (event) {     
    $("#divid").hide();
});
gaurang171
  • 9,032
  • 4
  • 28
  • 30
0

Ajax AutoComplete for jQuery may help you.

Alfred
  • 21,058
  • 61
  • 167
  • 249