Monday, April 27, 2009

[jQuery] ajax append problem

Hello,

im using this script to load a external site into my DOM.
It works fine but i need just a part of this test.html.

For example: I want to append just the div "#cont" from test.html
How can i do that?

<script type="text/javascript">
$.ajax({
url: "test.html",
cache: false,
success: function(html){
$(".content").append(html);
}
});
</script>

Thanks for Help!

No comments:

Post a Comment