[jQuery] using className..?!

[jQuery] using className..?!

Hello!
I am trying to find out the class name of a given element using jQuery.
This one is working:
var what = document.getElementById('nummer_'+obj).className;
but this one isn't:
var what = $('nummer_'+obj).className;
I am looking at examples and documentations for about an hour now but
I couldn't find why this isn't working..
However s the working example already the best way to do this or can
jQuery do better?
yours,
Dominik
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/