i'm trying to understand

i'm trying to understand

Hi forum,

i'm brandnew in jquery and try to work with it. i found out,
how to get my object with the id "myobject":

Obj = $('#myobject')[0];

... and now i'm able to work with as DOM-Object like this:

if (Obj)
{
tmpClass = Obj.className;
Obj.className = "myclass";
}

... but actually wanted to 'add' 'myclass' to my Obj instead of
overwriting it's old class. So i tried using this:

if (Obj)
{
Obj.addClass('display');
}

... but that doesn't work. What' wrong with it ?

best,
heinetz