djonA,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<style type="text/css">
.showhide {
background: red;
}
</style>
<script>
$(document).ready(function(){
$('.main').each(function(){
$('.child', this).filter(function() {
return this.textContent - 2 > 0
}).addClass('showhide');
});
});
</script>
</head>
<body>
<div class="main">
<div class="child">4</div>
<div class="child">1</div>
<div class="child">3</div>
<div class="child">2</div>
</div>
<div class="main">
<div class="child">1</div>
<div class="child">2</div>
</div>
</body>
</html>