I have added a qty box with add to cart button on product list page like
<input type="number" min="1" name="qty" maxlength="12" value="1" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="{'required-number':true,digits:true,'validate-greater-than-zero':true}"/>
How I can validate this?