As depending on the numbers block to remove another block?

Let's say there are 2 div the block with such classes as .counter_numbers I. text_info
<div class="counter_numbers">46</div>

<div class="text_info">help Text number of countries in the world.</div>

The point is that if the numbers (generated by the user) in the block .counter_numbers more than 10, then you need to hide the unit .text_info. And if less than 10, then do nothing. Prompt as such to implement.
July 2nd 19 at 17:55
1 answer
July 2nd 19 at 17:57
Well, you've already figure in the block counter_numbers change with js. Make check:
var el = $(".text_info")
if (counter > 10) {
el.hide();
} else {
el.show();
}

Find more questions by tags jQueryJavaScript