teethgrinder

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…

  1. teethgrinder reblogged this from exogen
  2. exogen posted this