Put .empty() before the load.  That will clear it out.

Glen

On Dec 18, 2007 6:00 PM, rolfsf <[EMAIL PROTECTED]> wrote:

>
> I'm doing some simple ajax using .load --- clicking on a table row
> loads some html from an external file into a div.
>
> My question - do I need to remove the contents of the div (#myWindow)
> before loading the new html, or does .load do this?
>
> $('.myTrigger).click(function(){
>        var wf = $(this).attr('id')
>        var details = (wf + '.htm')
>        $("#myWindow").load(details);
> });
>
> <div class="myTrigger" id="thisOne">Click here</div>
>
> <div id="myWindow">
>    <div>some placeholder content</div>
>    <div>some more placeholder content</div>
> </div>
>
> thanks!
> r.
>

Reply via email to