title: How to set title to a div in mvc?
body: <p>I have the following code, but it`s giving me errors</p>
  
  <pre><code> &lt;div id="ChangePassword" title="Change password for "&amp;&lt;%=item.Name%&gt;&gt;
          &lt;%Html.RenderPartial("PasswordDetails", Model); %&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I need to display the name in the title. How can I do that?</p>
  
  <hr>
  
  <p>I actually want to dipslay the name of the employee in the div when the link is clicked.  How can I do that?</p>
  
  <pre><code>&lt;% foreach (var item in Model.employee) { %&gt;
  
      &lt;tr&gt;
          &lt;td&gt;&lt;%=item.Name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= Html.ActionLink("Edit", "Edit", new { userID = item.ID })%&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href="#" id="password_link" &gt;Change Password&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt; &lt;%= Html.ActionLink("Delete", "Delete", new { id = item.ID }, new { Class = "deleteLink", title = item.Name })%&gt;&lt;/td&gt;           
     &lt;/tr&gt;
  
  &lt;% } %&gt;
  
    $("#password_link").click(function() {
          $('#ChangePassword').dialog('open');
          return false;
  
          });
  
  
  &lt;div id="ChangePassword" title="Change password for &lt;%=item.Name%&gt;"&gt; 
  &lt;%Html.RenderPartial("PasswordDetails", Model); %&gt; 
  </code></pre>
  
  <p> </p>