This is my approach to menus using jQuery. I’ll go through it line by line to serve as a mini introduction to events in jQuery.
Here’s a preview of what we’re making. The desired behavior:
- Clicking on a button opens its menu
- Clicking anywhere except inside the menu closes it
I use two…
-
teethgrinder reblogged this from exogen
-
exogen posted this