title: Adding DOM element with JQuery
body: <p>I'm trying to add DOM element with using JQuery in that way:</p>
  
  <pre><code> $("&lt;label/&gt;", {
  
      "class": "switch",  
  
         on:{
  
            click: function(event){
  
            let currentBlock =  $(this).parents('.item');
  
            if($(this).find('input[type=checkbox]'){
              currentBlock.toggle('inactive')
            }
            else{
              currentBlock.toggle('inactive')              
            }
        },
  
        append: '&lt;input type="checkbox"&gt;&lt;span class="slider round"&gt;&lt;/span&gt;',
  
        appendTo: context
  
    }); 
  </code></pre>
  
  <p>And it work like a charm, but I can append to this block only one element.</p>
  
  <p>I mean that piece of code: </p>
  
  <pre><code>append: '&lt;input type="checkbox"&gt;&lt;span class="slider round"&gt;&lt;/span&gt;'
  </code></pre>
  
  <p>I tried to find in which way I can add a few elements, put theare Array or Object...but it does not work :(</p>
  
  <p>Anyone has similar problem?</p>