jquery - Bootstrap table hover for rows with same column value -
i'd ask tips how that. i'am using bootstrap tables hover on rows. need hover more rows have same value in specific (first column). when hover 1 of rows have same value in first corner rows value change color.
thank advice.
this not bootstrap issue... see this jsfiddle:
$('.item').on('mouseenter', function(){ var value = $(this).text() $('.item').each(function(){ $this = $(this); if(value == $this.text()){ $this.addclass('active'); } }); }); $('.item').on('mouseleave', function() { $('.item').each(function(){ $(this).removeclass('active'); }); });
hope helps!
Comments
Post a Comment