Well if you want to replace the HTML within the div you should use
.html() but if you want to just add some HTML to the div then you
should use .append() or .prepend().

So if you first .load() and then in the callback do a .prepend() to
add HTML to the top of the div that should solve the problem.

--
Brandon Aaron

On 1/7/07, insq <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I've been stuck for a moment trying to do as following:
>
> 1) Insert the specified HTML code to a div
> 2) Append whole content of the specified HTML file to the same div.
>
> As for know I may only do one of these points. Can't combine them together.
>
> Any suggestions how to easily combine load() and html()?
>
> Cheers
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/insert-HTML-and-then-append-loaded-HTML-file-tf2935505.html#a8206995
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to