$.ajax({
    type: "GET",
    url: "home.html",
    data: "",
    success: function(html){
        $("#loadTest").append($(html).find("#footer"));
    }
});

that should do it. but why would you pass an empty string of data?



On Apr 21, 9:39 am, hubbs <[EMAIL PROTECTED]> wrote:
> I cannot get it to work, here is what I tried:
>
> function loadTest() {
>          $.ajax({
>    type: "GET",
>    url: "home.html",
>    data: "",
>    success: function(html){
>    $(html).find("#footer");
>    $("#loadTest").append(html);
>    }
>  });
>
> Any help would be appreciated!
>
> On Apr 20, 10:22 pm, hubbs <[EMAIL PROTECTED]> wrote:
>
> > Sorry, not sure how I started a new topic...
>
> > I am trying to use the ajax POST and GET function, and at the same
> > time, use .find to filter the results so I only return a div with a
> > specific ID.  I have tried, and I am failing to get it working.  Any
> > help would be great!
>
> > On Apr 20, 10:20 pm, hubbs <[EMAIL PROTECTED]> wrote:
>
> > > Could anyone help with this?  I figure that I should be using
> > > the .find function, but I am not sure how to use to to filer my
> > > response text, and only display the id that I want.  The example seems
> > > to not be working, or I should be changing it somehow, and I am not
> > > sure.
>
> > > Anyone?

Reply via email to