I have 2 listboxes, currently I can mouseover the listbox and highlight an item on mouseover. But I want it such that when I mouseover to either listbox1 or listbox2, the items in both listboxes would be highlighted when I mouseover.
This is what I get now:
I want the first item of both listbox1 and listbox2 to be highlighted when I mouseover.
I have researched for a couple of hours on how to do this but none of them seemed to work for me.
Similarly, if I click on either listbox1 or listbox2, I would be able to select a row too.
I am not familiar with jQuery or Javascript, so I would prefer to have a solution that is either C# or CSS based.
*Note: It is not that I am not willing to share the codes I have tried with, I really deleted them after seeing that they did not work AT ALL and I have already spent days researching on this before resorting to StackOverflow, knowing that it has strict rules for asking questions. If I had known how to do I would not have asked here, thanks so much.
If I remember correctly I think I used the following code:
select option: hover{
color: pink
}
Or maybe I tried with
select option: ListBox1 : hover {
In my CSS, I really cannot remember anymore. Anyway to keep it simple none of the codes I tried worked.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…