title: Change the background color of table row according to the input value
body: <p>When the status is open the background would remain white, so if the status change to closed, i'd like to make the background green.Any idea.Thank you</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table border='1' cellpadding='25'&gt;
  
  &lt;th&gt;Status&lt;/th&gt;
  &lt;tr&gt;&lt;td&gt;&lt;select&gt;&lt;option value=""&gt;Open&lt;/option&gt;&lt;option value=""&gt;Closed&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
  &lt;tr&gt;&lt;td&gt;&lt;select&gt;&lt;option value=""&gt;Open&lt;/option&gt;&lt;option value=""&gt;Closed&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
  &lt;tr&gt;&lt;td&gt;&lt;select&gt;&lt;option value=""&gt;Open&lt;/option&gt;&lt;option value=""&gt;Closed&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>