title: Change style on a row in JQuery Datatables when editing displayed values
body: <p>I have a datatable from the JQuery plugin that displayes objects fetched from a database. At the end of each row there is an "edit" button that when clicked opens up a popup with fields that allows the user to change the object.</p>
  
  <p>The code below is the "edit" button opening the popup.</p>
  
  <pre><code>&lt;td&gt;@Ajax.ActionLink("Edit",
                                   "controllerMethodReturningEditView",
                                   new
                                   {
                                       Id = @m.Id
                                   },
                                   new AjaxOptions
                                   {
                                       HttpMethod = "GET",
                                       UpdateTargetId = "popupBox",
                                       InsertionMode = InsertionMode.Replace,
                                       OnSuccess = "openPopup('myPopup')"
                                   })&lt;/td&gt;
  </code></pre>
  
  <p>The controller method called when pressing the edit button just opens a view that is a partial displayed in a popupbox</p>
  
  <pre><code>return PartialView("editObjectView", objectModel);
  </code></pre>
  
  <p>and this "editObjectView" just contains a form with fields for taking input.</p>
  
  <pre><code>@using(Html.BeginForm(...
             &lt;label&gt;...&lt;/label&gt;&lt;input ... /&gt;
             .... and so on
  </code></pre>
  
  <p>Then in this popup the user is allowed to edit the values of the displayed object. When the user presses a "save" button in the popup the new values will be sent to a controller method that saves the values (to the object) in the database. When the values are saved the controller method calls the controller method that loaded the first view (the view showing the datatable) and that method requests all objects from the database in order to display new objects or changes to objects. </p>
  
  <p>Now here is my question: when the page is reloaded after an object has been edited, how do I change the style of the edited row? All I want is to set a red border around the recently edited row. I would prefer if I would not have to send the object through all the controller methods used to reload the page.</p>
  
  <p>Thanks for the help, appreciate it! </p>