title: html add class to item without ID with js
body: <p>I want to add a class to a <code>&lt;li&gt;</code> using JavaScript, this is the html I have:   </p>
  
  <pre><code>&lt;li tabindex="-1" role="option" unselectable="on" class="k-item"&gt;
      &lt;input type="checkbox" name="categoryItems_option_1" value="1"&gt;&amp;nbsp;
      &lt;label for="categoryItems_option_1" class="selctAllBox"&gt;Select/Deselect All&lt;/label&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I cant use the "k-item" class because there is more then one of them.</p>
  
  <p>I added the "selectAllBox" class like that:</p>
  
  <pre><code>$("label[for='categoryItems_option_1']").addClass("selctAllBox");
  </code></pre>
  
  <p>Is there a way to use something like parent or anything like that, to set the class? </p>