Which version of jQuery are you using ? ---- Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Sat, Feb 7, 2009 at 9:48 PM, pedalpete <p...@hearwhere.com> wrote: > > like my original statement that works in IE and FF, but not Safari or > Chrome. > Strange.... > > On Feb 6, 11:17 pm, jQuery Lover <ilovejqu...@gmail.com> wrote: >> var newItem=$("div#item", response).html(); >> >> ---- >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >> >> On Sat, Feb 7, 2009 at 9:02 AM, pedalpete <p...@hearwhere.com> wrote: >> >> > I'm trying to get a div from an html ajax response. >> > my code is pretty simple >> >> > [code] >> > success: function(response){ >> >> > var >> > newItem=$(response).find("div#item").html(); >> >> > alert(newItem); >> > } >> > [/code] >> >> > This works fine in FF and IE, but Chrome and Safari both return null. >> >> > I'm trying to find another way to write that, but It all seems pretty >> > straight forward to me. >> > Is there another way to get this other than .find?