Bug Tracker

Opened 16 years ago

Closed 16 years ago

#294 closed feature (worksforme)


Reported by: [email protected] Owned by:
Priority: minor Milestone:
Component: event Version:
Keywords: hover hoverclass mouseover mouseout Cc:
Blocked by: Blocking:


It would be nice if there was a feature called hoverClass. Which would simply add a class on a mouseover event and remove it on mouseout. The source would then look like something like:


This offcourse would add the class "over" to the h3-element on mouseover and remove it on mouseout.

Change History (1)

comment:1 Changed 16 years ago by joern

Resolution: worksforme
Status: newclosed

This can be easily added if needed, try this (tested):

jQuery.fn.hoverClass = function(value) {
  return this.hover(function() {
  }, function() {
Note: See TracTickets for help on using tickets.