Hey am new web developer and am working on a quote website project.
Please visit my CodePen project to understand the question clearly or else you cannot understand the question. Just click any copy button in CodePen.
Now my problem is, as you can see there are many quotes. I need a
<div class="newclass"> element to be inserted for every two quotes, that is
<div class="newclass"><div class="latestatus"><p>1The cat is better than dog.</p> <button class="copystatus btn">Copy</button></div><div class="latestatus"><p>2Google is a open source library.</p> <button class="copystatus btn">Copy</button></div></div>
As you see above they are two quotes of the CodePen project. I need
<div class="newclass"> to surround every two quotes.
Again I will tell my problem that, I need
<div class="newclass"> to surround every two quotes (not for only first 2 quotes).
I hartley thanks for those who answer this question.