codegoboom
08-27-2004, 07:21 AM
If you want to toggle properties on a group of elements, like changing the appearance of whatever one was clicked last, wouldn't looping through all of them every time the event fired be sort of excessive? I've seen it where a global variable referenced the last-clicked one, so you'd only be dealing with two elements at a time (instead of however many are in the group)... seems better... any reasons why not?