Hello I have a doubt about $(this)
in jQuery. I was doing an exercise, at the end of the script you can see:
$(this).before(quote);
Can I consider $(this)
as temporary variable that contains the value of that loop? In generally how can I consider $(this)
?
$(document).ready(function() {
$('span.pq').each(function() {
var quote = $(this).clone();
quote.removeClass('pq');
quote.addClass('pullquote');
$(this).before(quote);
}); //end each
}); // end ready