unemployment Posted May 13, 2011 Share Posted May 13, 2011 When click on the goals button the drop down list is displayed. I want the both the drop down and the button to return to it's original (unclicked) state when click away from both the menu and the button. Right now you can toggle the button, but if the menu is shown and you click outside of the menu, the menu won't disappear. Please help make that happen. You can view my code snippet here. .. http://jsfiddle.net/gxDK6/ Quote Link to comment Share on other sites More sharing options...
monkeytooth Posted May 13, 2011 Share Posted May 13, 2011 what might be a better solution is set a focus and blur action on a specific element like a div. wrap that div around the button and select so when your focused over the div (and anything in it) it will act like you want, when you leave the div (blur) it will do the other thing.. Just a thought, not sure if thats your exact notion being implied by your post but either way hope its helpful Quote Link to comment Share on other sites More sharing options...
unemployment Posted May 13, 2011 Author Share Posted May 13, 2011 I've kind of tried that, but just don't know how to implement it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.