[jQuery] clarfication

[jQuery] clarfication


I just posted about 1 hour ago and my post didn't show up so here goes
again.
new to jquery and there's something I'm missing.
$('.switch :radio', this).each(function(){
        $(this).click(
            function(){
                alert($(this).parent(".switch").get(0).className);
            });
        });
//when the .switch radio button is clicked go up to the parent and
alert the className.
I always get undefined. Don't dom methods or properties work on jquery
objects?