title: Save selected dropdown value to JSON
body: <p>I want to save a value of the selected element of a dropdown to a JSON file.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;td contenteditable=true bgcolor="#F4F2F2"&gt;
      &lt;select&gt;
         &lt;option value="default"&gt;${list.days}&lt;/option&gt;
         &lt;option value="1"&gt;1&lt;/option&gt;
         &lt;option value="2"&gt;2&lt;/option&gt;
         &lt;option value="3"&gt;3&lt;/option&gt;
         &lt;option value="4"&gt;4&lt;/option&gt;
      &lt;/select&gt;
  &lt;/td&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>function(i) {
      var $tds = $(this).find('td'), status = $tds.eq(0).text();
      console.log(status)
      json = json + " {\"deviceType\": \"" + $tds.eq(1).text()+ "\"," + "\"days\": \"" + $tds.eq(2).text()+ "\"},";});
  </code></pre>