ass="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-comment">// Update an input box to set the background and text color and display the hex color value in the box.</span>
<span class="hljs-keyword">var</span> updateBox = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">box, col</span>)</span>{
  <span class="hljs-keyword">var</span> elem = hx.select(box)
  elem.value(col.toString().toUpperCase());
  elem.style(<span