I'm trying to validate with min value some required fields. I have several inputs. How to make validation to show or hide `.min_val` for each input - something like `closest('.min_val')`.

I tried: `$this('closest').('.min_value').css('display','none');`, but it's not working. In this case, if I've not filled all inputs, it's showing `min_val` messages. These messages should be shown for each input independent of the others. How to do that?

My code is:

```js
$(".orders-div :input").each(function () {
  var min = $(this).attr('data-min-val');
  var value = $(this).val();

  if(min !== undefined && min !== null && min !== false) {
    if(value < min) {
      $(this).addClass('error');
      $(this).closest('label').addClass('red');
      $('.min_value').css('display','block');
    }
  }
```

```html
<div class="span2">
<label for="quantity">
    <?php echo __('Quantity'); ?>
    <span class="red">*</span>
    <span class="min_value red" style="display:none"><?php echo __('Required min value:'); ?> 1</span>
</label>

<input data-min-val='1' class="span12 required" type="text" name="quantity">
</div>
```