title: Refresh Partial view
body: <p>I used <code>@Html.RenderAction("_DisplayImages")</code> to render a partial view.</p>
  
  <pre><code>@model List&lt;Univems4.Models.ImageViewModel&gt;
  
  @foreach (var image in Model)
  {
  &lt;div class="set"&gt;
  
      &lt;div class="header invisible"&gt;
          &lt;label class="edit"&gt;@image.Name&lt;/label&gt;
          &lt;button class="close btnDeleteImage" title="Delete"&gt;×&lt;/button&gt;
      &lt;/div&gt;
  
      &lt;img class="img-thumbnail edit" src="data:image/bmp;base64,@image.base64string" id="@image.Id" /&gt;
  
  &lt;/div&gt;
  }
  </code></pre>
  
  <p>Upon button click, I want to refresh this partial view. The approach I tried is by using jQuery ajax get method. </p>
  
  <pre><code> $.get("/VmsMessage/_DisplayImages", null, function (data) {
                  //success
  
                  $('#bit').html(data);
  
              }, "html");
  </code></pre>
  
  <p>The partial view was refreshed. but it no longer responds to the events. Why? </p>
  
  <pre><code>$(".set").hover(function (e) {
    // do something
  });
  
  $(".edit").click(function (e) {
    // do something
  });
  </code></pre>