EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kingor2001 on June 22, 2019, 10:08:00 PM



Title: How to highlight a tag with hover?
Post by: kingor2001 on June 22, 2019, 10:08:00 PM
How to highlight a tag with hover?
How to change the color of a clicking tag like tree's action?

I can now just deal as follows
t.next("span.textbox").on("mouseenter mouseleave", ".tagbox-label", function() {
         $(this).toggleClass('tagbox-hover');
      }).on("click", ".tagbox-label", function() {
         $(this).addClass('tagbox-selected').siblings().removeClass('tagbox-selected');
      });


Title: Re: How to highlight a tag with hover?
Post by: stworthy on June 24, 2019, 07:16:05 AM
Just define this css style.
Code:
<style type="text/css">
.tagbox-label:hover{
background: #ddd;
}
</style>