Hi, I've a box from divs (price_item) with several child divs (date, price etc.). I'm using it as a caroussel for showing prices. If one clicks on any child, the parent's background color must be changed to red. I wrote it like:
$(...selectquery...).click(function() {
var $tgt = $(event.target);
$tgt.parent().css("backgroundColor", "red");
});
on Chrome, event.target is working as expected, on Firefox 3.0.1 it says "event is not defined". How can I work around this?
I've tried the following:
$(this).parent().css()
it says 'object is not a function'
thanks!