title: jQuery to Pure javaScript Questions
body: <p>I am playing with JavaScript and have set myself the task of converting some jQuery I wrote last night to pure JavaScript. I've come across a few questions I was wondering if someone cold help me with.</p>
  
  <ul>
  <li>is <code>$(this)</code> a jQuery object, and not used in pure JavaScript (is <code>this.something</code> the same)?</li>
  <li>can you easily do something like <code>.after()</code> in pure JavaScript or is it just silly?</li>
  </ul>
  
  <p>I'm converting this in to pure JavaScript at the moment..</p>
  
  <pre><code>$('.list li').each(function(i) {
      if( ( i + 1 ) % numRow == 0 )
      {
           $(this).after( "&lt;div class='rowBreak'&gt;&lt;/div&gt;" );
      }
  });
  </code></pre>
  
  <p>so far I have this: </p>
  
  <pre><code>var totalThumbs = $('.list li').length;
  
  for ( var i = 0; i &lt; totalThumbs; i++ ) {
      if( ( i + 1 ) % numRow == 0 )
      {
          $(this).after( "&lt;div class='rowBreak'&gt;&lt;/div&gt;" );
      }
  }
  </code></pre>