title: take list from checkboxes and insert into css
body: <p>I want users to be able to select from a row of check-boxes of additions to make to <code>CSS</code>. </p>
  
  <p>I'm using <code>JS</code> to search for checked boxes, take the names, put into a list, then take the list and put it into <code>CSS</code> as a value for a property. </p>
  
  <p>I can't tell if it's going into the <code>CSS</code> just incorrectly, or not going in at all.</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-js lang-js prettyprint-override"><code>$(document).ready(function () {
  
    var checkbox = document.querySelector('[type="checkbox"]');
  
    checkbox.addEventListener('change', function() {
        getOTFeaturesTextA();
    });
  });
  
  function getOTFeaturesTextA(){
  
    var textA = document.getElementById("textA"),
      chkArray = [];
  
    $(".ot-textA:checked").each(function() {
      chkArray.push($(this).val());
    });
  
    var selected;
    selected = chkArray.join(',') ;
  
    if(selected.length &gt; 0){
      textA.css("font-feature-settings", selected + ", liga"); 
    }else{
      textA.css("font-feature-settings", "liga");
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="ot-checkboxes"&gt;
    &lt;p&gt;
      &lt;label&gt;
        &lt;input type="checkbox" name="frac" value="'frac'" class="ot-textA" id="frac"&gt;
        Fraction&lt;/label&gt;
      &lt;br&gt;
      &lt;label&gt;
        &lt;input type="checkbox" name="aalt" value="'aalt'" class="ot-textA" id="aalt"&gt;
        Alternatives&lt;/label&gt;
      &lt;br&gt;
          &lt;label&gt;
        &lt;input type="checkbox" name="onum" value="'onum'" class="ot-textA" id="onum"&gt;
        Oldstyle Numbers&lt;/label&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div id="textA" contenteditable="true"&gt;&lt;span&gt;Trying out checkboxes 3/4 &lt;/span&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>