Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

i have a listbox which shows userids when we click on a button...

in that when we hover cursor on the items, the items should be selected when cursor runs on the items,
as like in gmail.com....


can you please suggest me some code to clear my doubt...?
Posted
Updated 18-Sep-14 19:36pm
v2

1 solution

Gmail just changes the row color on hover. So you can do this in two way:
1. Change the row color by style attricbute
2. Or change the color by changing the css class

Use Jquery to add this functionality.

If you need more help let me know.
 
Share this answer
 
Comments
chaitanya556 19-Sep-14 2:22am    
i need in c# only, please forget about gmail... the only thing i want is, when we place mouse pointer on an item in listbox, it should be selected, like wise when mouse pointer goes on through the items, they should be highlighted(selected[single item])
i need code for that...
Er. Puneet Goel 19-Sep-14 2:31am    
the hover effect is done through jquery only. Just show me show code i will set an example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900