It would be:
Code:
$(this).css('cursor', 'url(closedhand.cur),move');
But there is no need to use $(this), one may:
Code:
this.style.cursor = 'url(closedhand.cur),move';
It's more efficient, and the $(this) gives no advantage here.
Another thing, where you have:
Selectors in jQuery are (for the most part, there are extra ones) identical to css selectors. So that might not be what you expect. It should resolve to either:
Code:
$('body, #some_literal_id')
or to:
Code:
$('body #some_literal_id')
If it doesn't, it will not be selecting what you think it is. In the above, a class may be used (.some_literal_class in place of #some_literal_id).
Bookmarks