How is it possible to count a variable inside of a innerHTML?
JS
var counter = 1;
counter++;
alert(counter);
$(".end").html('Test ' + counter+1 + ' Test');
HTML
<p class="end"></p>
In my JSfiddle example, it works for alert example, but not in the innerHTML element. Why? How is it getting work?