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!
>

Reply via email to