Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (91 - 93 of 13852)

Ticket Resolution Summary Owner Reporter
#4902 fixed wrap() with text node. john
Description

Wrapping doesn't work when the first sub-child is a text node.

http://groups.google.com/group/jquery-dev/browse_thread/thread/5a076d62b88a7c86

#4903 fixed wrap() clone all elements john
Description

All the elements are cloned, but only the first needs to be.

http://groups.google.com/group/jquery-dev/browse_thread/thread/9a4259a95d77447b

#4919 wontfix Add a hoverClass method joern
Description

The following 5 lines are repeated across applications and plugins again and again. I propose to add a plugin method to jQuery core to reduce these to simple one liners:

$(".selector").hover(function() {
  $(this).addClass("class");
}, function() {
  $(this).removeClass("class");
});

Plugin method and usage:

$.fn.hoverClass = function(hoverClass) {
  return this.hover(function() {
    $(this).addClass(hoverClass);
  }, function() {
    $(this).removeClass(hoverClass);
  });
});
$(".selector").hoverClass("class");
Note: See TracQuery for help on using queries.