differentiates between max/min & maxlength/minlength

laravel says max = maxlength, but jquery validation has both

adds logic that if field type is number and max/min are set it sets the corresponding jquery validation method appropriately