title: How can i have focus on label tag using .focus () in javascript
body: <p>I am having Html in which i need focus on label tag when input is clicked</p>
  
  <pre><code>&lt;li class="princee"  data-category="connectivity"&gt;
   &lt;label class="pack-switch" tabindex="0"&gt;
   &lt;input class="airplaneMode-input uninit lambas"  type="checkbox"&gt;
   &lt;span id="menuItem-airplaneMode" class="menu-item" data-icon="airplane" data-l10n-id="airplaneMode"&gt;&lt;/span&gt;
   &lt;/label&gt;
   &lt;/li&gt;
  </code></pre>