try removing the get(0)

Ariel Flesler

On Dec 24, 6:21 am, KnoxBaby <[EMAIL PROTECTED]> wrote:
> ahh, this would be a nice idea, than it would work like the code is on
> the page itself :) I try this, thanks :)
>
> On Dec 24, 1:21 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Are you trying to get it while its in the variable?  Maybe put the html into
> > a dom element first, like
>
> > $("div#someHiddenDiv").append(str);
> > thingyouwant = $("div#content").html();
>
> > Does this help?
>
> > Glen
>
> > On Dec 22, 2007 7:30 PM, psy* <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > I have a full html code in in a var:
>
> > > str = 'full html code here starting with <html>';
>
> > > and now I want to get the innerHTML of a div with an certain id. I tried
> > > that:
>
> > > $(var_name).filter('div#content').get(0).html()
>
> > > but that doesn't work. What's the right way??
>
> > > thanks!- Hide quoted text -
>
> - Show quoted text -

Reply via email to