[jQuery] newbie: test for null selection

[jQuery] newbie: test for null selection


How can I test that a control selection failed to find anything? This
doesn't work:
    var sumthin = $('#IDoNotExist');
    if (sumthin == null)
        alert('didnt find');
Thanks,
Brad