Here's some markup:

      <h2 class="drawer-handle"><div>Saved</div></h2>
      <h2 class="drawer-handle" id="rides-button"><div>Rides</div></
h2>
      <h2 class="drawer-handle" id="details-button"><div>Details</
div></h2>

I'm want to bind click events to the first and last <h2>s, but exclude
the #rides-button (because I have a different click event for it). Not
really sure how to do it, the docs on :not are pretty sparse (well,
that's my excuse today). This is what I started with, which of course
is not exclusive at all:

        $('h2.drawer-handle').click(function () { ... });

...Rene

Reply via email to