EasyUI Forum
October 13, 2024, 07:18:47 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to highlight a tag with hover?  (Read 3093 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« 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');
      });
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 24, 2019, 07:16:05 AM »

Just define this css style.
Code:
<style type="text/css">
.tagbox-label:hover{
background: #ddd;
}
</style>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!