I'm sure this is a simple question, but didn't see applicable answers here. I've got code like this:
$('.thumbImg').mouseout(function(){selectCur()});
//selectCur() is a pure-JS function defined elsewhere in the document
But the function is only bound to the first element with class .thumbImg. Normally, I'd use a $(this), but that won't work here (unless I'm doing something wrong).
I guess my last resort is a for loop, but I'm sure there's a way to avoid that.
Thanks!
selectCur(). That code does bind the handler to all .thumbImg's.