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?

Reply via email to