Assign an css-Property to a div

Assign an css-Property to a div

Hi,

I want to assign a css-property to all spans

This is the way I do it:
$("div#tabhead > span").css({cursor:"pointer"});


But I additonally want to hide all spans, but not the span whit the id=0.
This is what I want:
if ($("div#tabhead > span").id != 0) {
  $("div#tabhead > span").css({display:"none"});
}

Can someone tell me how to do this???