tags:

views:

47

answers:

2

Hi,

I've got a list, and I have a click handler for its items:

<ul>
  <li>foo</li>
  <li>goo</li>
</ul>

how can I change the mouse pointer to be a hand pointer (like when hovering over a button)? Right now the pointer turns into a text selection pointer when I hover over the list items.

Thanks

+2  A: 

You do not require jQuery for this, simply use the following css:

li {cursor: pointer}

And voilà! Handy.

Denis 'Alpheus' Čahuk
I think you mean *voila* (or, if you want to be even more pedantic, *voilà*). Unless, that is, you sit in the middle of the string section of an orchestra. :)
Robusto
I stand corrected. The pointer shall always remind me of this. Oh no, there's the pointer again!
Denis 'Alpheus' Čahuk
+1  A: 

Actually to expand on the previous answers, different browsers use different names.

li { cursor: hand; cursor: pointer; }

Will cover you in all cases.

Aren
It's funny how these questions make people google the same page :) Good point though. +1
Denis 'Alpheus' Čahuk
FWIW, I didn't google :) Just something I deal with day-to-day :) Thanks for the + though!
Aren