title: How use JQuery each function in typescript
body: <p>I want to get class/attr of each checkbox. Code sample is given below.</p>
  
  <pre><code>  jQuery("input[type='checkbox']").each(()=&gt; {
        let checkboxID = jQuery(this).attr("class");
        console.log(checkboxID);//output undefined
        console.log(this.atc1List); //typescript variable 
      });
  </code></pre>