Aaron Heimlich schrieb:
> I believe e.target is what you're looking for
Agreed. jQuery provides a perfect target property just for you:

$(".selectable").click( function(e) {
   $(this).toggleClass("selected");
   $(e.target).toggleClass("clicked");
   saveCookie($(this).attr("id"), 
$(this).attr("class").indexOf("selected"));
  });

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to