Actually,  this would be better I think:

$(".menu1").append($("<div/>").load(favoritesHTML).html());

The idea being to consruct a temp placeholder for your loaded html
that goes away after.

On Aug 19, 4:18 pm, ak732 <ask...@gmail.com> wrote:
> The syntax looks okay.
>
> Are you using Firebug to verify that #favorites (which appears to be a
> mysterious <li> somewhere) is actually being loaded as you expect?
> Does it actually contain the <li> tags you show above?
>
> Also, you might want to eliminate #favorites altogether by taking a
> page from jQuery's load implmentation like this:
>
> $("<div/>").load(favoritesHTML).html().appendTo(".menu1");

Reply via email to