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.
- is $(this)a jQuery object, and not used in pure JavaScript (isthis.somethingthe same)?
- can you easily do something like .after()in pure JavaScript or is it just silly?
I'm converting this in to pure JavaScript at the moment..
$('.list li').each(function(i) {
    if( ( i + 1 ) % numRow == 0 )
    {
         $(this).after( "<div class='rowBreak'></div>" );
    }
});
so far I have this:
var totalThumbs = $('.list li').length;
for ( var i = 0; i < totalThumbs; i++ ) {
    if( ( i + 1 ) % numRow == 0 )
    {
        $(this).after( "<div class='rowBreak'></div>" );
    }
}
 
     
     
     
    