I have my markup like this
<div class="content-wrapper">
<div class="wrapper">
<section>
<div class="counter">
<div class="counter-data-values">$2,809,121</div>03
<span class="counter-body"></span>
</div>
</div>
</section>
</div>
<div class="wrapper">
<section>
<div class="counter">
<div class="counter-data-values">678</div>02
<span class="counter-body"></span>
</div>
</div>
</section>
</div>
<div class="wrapper">
<section>
<div class="counter">
<div class="counter-data-values">976</div>12
<span class="counter-body"></span>
</div>
</div>
</section>
</div>
</div>
Now from this you can see there are texts like 03, 02, 12. I want to remove them at a time. So for that I used the jQuery code like this
jQuery(document).ready(function() {
jQuery('.counter').first().contents().eq(1);
});
But it is only selecting the first text of first block only i.e 03. So can someone tell me how to select and remove 03,02,12 at a time? Any help and suggestions will be really appreciable. Thanks