title: How to tell when an input dialog closes?
body: <p>I have an <code>&lt;input type=color&gt;</code> element on my page. I want to find out what color is selected and add that color to a div. I have tried:</p>
  
  <pre><code>$("#col").on("change",function(){
      var d = $q(this).value;
      $q("#out").innerHTML+="&lt;p&gt;Color: &lt;span style=\"color: "+d+";\"&gt;"+d.toUpperCase()+"&lt;/span&gt;&lt;/p&gt;";
  });
  </code></pre>
  
  <p>This works perfectly well, <strong><em>EXCEPT</em></strong> when the user doesn't actually <em>change</em> the value of color; I want it to be added <em>unconditionally</em> after the user exits the dialog. How might I go about doing this?</p>