The confused and problem about the jquery ajax using

The confused and problem about the jquery ajax using

At first I want request a whole page:

  1.     $.ajax({
                type
    : "get",
                url
    : "Test.aspx",
                dataType
    : "html",
                success
    : function (html) {
                     $
    (html).appendTo($("#contain"));
               
    },
         
    });

the whole page element will append to the div#contain,include the css,js script effect ,

but when I request part of the page 's elements,like :

  1. $.ajax({
            type
    : "get",
            url
    : "Test.aspx",
            dataType
    : "html",
            success
    : function (html) {
                 $
    (html).find("div.test").appendTo($("#contain"));
           
    },
     
    });

the resault is that div#conntain only get the element's pure inner html,like some text,without any css or js effect……

so how can I get parts of the page 's element' include css and js effect?or it is just impossible……