Previous content of partial view not deleting after return from ajax call
<p>I'm trying to update partialview after ajax call, the partial view is updating but the previous content not deleted from screen.
I have now the prevoious one and the current results on the screen.
That's my code:</p>

<pre><code> public ActionResult FindMovies(string text)
    {
        ViewBag.ShowButton = Rented;
        FindMovie(text);
        if (movies.Count == 0)
            ViewBag.Movies = "null";
        else
            ViewBag.Movies = "notNull";

        return View(movies);

    }
    public ActionResult Rent(int id)
    {
        if (Rented.Equals("no"))
        {
            movieRent = db.Movies.Find(id);
            movieRent.UserRent = userId;
            movieRent.Rented = true;
            db.Entry(movieRent).State = EntityState.Modified;
            db.SaveChanges();
            Rented = "yes";
            movies.Find(x =&gt; x.ID == id).UserRent = userId;
            movies.Find(x =&gt; x.ID == id).Rented = true;
        }
        return PartialView("MovieList", movies);


    }
</code></pre>

<p>That's the view:</p>

<pre><code> &lt;div class="center"&gt;
        @{Html.RenderPartial("MovieList", Model);}
    &lt;/div&gt;
</code></pre>

<p>and its the partialview:</p>

<pre><code>  @model IEnumerable&lt;MvcMovies.Models.Movies&gt;

&lt;ul class="result"&gt;
    @foreach (var item in Model)
    {
        &lt;li&gt;
            &lt;table&gt;
                &lt;tr&gt;
                    &lt;th&gt;
                        &lt;figure&gt;
                            &lt;img src="@Url.Content(@item.Path)"
                                 width="100" height="100" alt="movie logo" /&gt;
                        &lt;/figure&gt;
                    &lt;/th&gt;
                    &lt;th&gt;
                        &lt;article&gt;
                            &lt;div class="editor-label"&gt;
                                @Html.DisplayFor(modelItem =&gt; item.Name)
                            &lt;/div&gt;
                            &lt;div class="editor-label"&gt;
                                @Html.DisplayFor(modelItem =&gt; item.Year)
                            &lt;/div&gt;

                            &lt;div class="editor-label"&gt;
                                @Html.DisplayFor(modelItem =&gt; item.StageManager)
                            &lt;/div&gt;

                            &lt;div class="editor-label"&gt;

                                @Html.DisplayFor(modelItem =&gt; item.Ganre)
                            &lt;/div&gt;

                            &lt;div class="editor-label"&gt;
                                @Html.DisplayFor(modelItem =&gt; item.Summary)
                            &lt;/div&gt;

                            &lt;div class="rent" id="rent"&gt;
                                @if (item.Rented.Equals(true))
                                {
                                    &lt;label&gt;Rented&lt;/label&gt;
                                }
                                else
                                {
                                    @Ajax.ActionLink("Rent",
                        "Rent",
                        "Subscription",
                          new { id = item.ID },
                          new AjaxOptions()
                        {
                            UpdateTargetId = "rent",
                            OnComplete = "onAjaxComplete",
                            HttpMethod = "post",
                        })

                                }

                            &lt;/div&gt;
                        &lt;/article&gt;
                    &lt;/th&gt;
                &lt;/tr&gt;
            &lt;/table&gt;
        &lt;/li&gt;
    }


&lt;/ul&gt;
</code></pre>

<p>Thanks.</p>