Tree View Structure Selected Node Highlighted

0
Hi Guys, I am facing a problem when I trying to Highlight with color Selected Node of Tree View Structure. By Default Tree View appear .selected class when we selected any node but this is for few Seconds after that this is remove. So I am not able to get How I Control on this class and put color or Highlight on Selected Node. If Anyone Have Answers then Please Reply.  
asked
2 answers
0

Hey there, common problem and this is the fun part about styling applications, so I will try to help you!

  • inspect the element that should be active
    • is there a class being used that assigns information for “active” items
    • This is the class that you want to manipulate to show the colors that you want

 

Try that and message me back :)

answered
0

 Hey, try something like this: because you will need to activate a class on click.

link to some more information on stack overflow: https://stackoverflow.com/questions/7738219/how-to-keep-active-css-style-after-clicking-an-element/20343068

 

item{
  /* 1st state */
}

item:hover{
  /* hover state */
}

item:active{
  /* click state */
}

item.active{
  /* after click state */
}


jQuery('item').click(function(){
   jQuery(this).toggleClass('active');
});

 

answered