Hello everyone,

Just started working with jQuery in the past few weeks, fairly
impressed thus far. :)

I've got a questions which actually might touch base more on a general
JS question but figured might as well ask it.

What I'm trying to do:


// What got clicked first? (capture)
// What was clicked Second? (capture)
// Was the second click the same as the first?
   // Hide child ul
   // else
   // Hide child ul + open new child from second parent

I guess my key stumbling block is storing the last clicked element
into memory to check agaist during the next function call.

I've this so far:
var $whatClicked = ($(this).get());

Any help is greatly appreciated.

Cheers,
David

Reply via email to