[jQuery] Access Ajax content with jquery DOM

[jQuery] Access Ajax content with jquery DOM


Hi,
Is there any way to access the DOM of ajax result ???... Like ... I
want to access $("#mydiv2").html() ..... where mydiv2 is in html file
which is loaded using ajax... (my ajax result is html).
I have one more question is it possible to put below code in my ajax
file (which I am going to load using ajax).
<script language="javascript" type="text/javascript">
$(document).ready(function(){
// my code here
     // ---------
    });
</script>
Thanks in Advance.....