how to get $(foot,'> .t') in my code, i using jquery..

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-03-17T07:15:24Z Indexed on 2010/03/17 7:21 UTC
Read the original article Hit count: 170

Filed under:
        var foot = document.createElement("div");
        $('<div class="t"></div><div class="b"></div>').appendTo(foot);
        foot.id='foot';
        //*****
        $(foot,'> .t').mouseover(function(){...})

i want to get the '.t' div element,

but now ,the 'foot' div is not already appenTo the 'document.body' ,

so i can't use this $('#foot .t'),

and i use this:$(foot,'> .t'), but ,i get the $(foot),

so how do i get the foot's '.t' element using jquery

thanks

© Stack Overflow or respective owner

Related posts about jQuery