I’m new to jquery and I’m looking at google’s code to create their ‘More’ button. I’ve got it working atm but the only way to make the drop down disappear is to click the ‘More’ button again. Is there a method I can add to change this so that any click outside of the drop down menu itself will close it? Thanks for the insight!
Share
Bind a click event to html to capture any click made, and make it hide the menu
Then override that on your menu’s
clickevent using.stopPropagation();Fiddle:
http://jsfiddle.net/rKaPN/12/