我想将最小值或最大值更改为color
红色button-down
button-up
spinner
<input type="hidden" name="id" value="<?= $this->product->getId() ?>" />
<input name="quantity" value="1" readonly/>
<script type="text/javascript">
$(document).ready(function () {
$('input[name="quantity"]').spinner({
min: 1,
max: <?= $this->product->getQuantity() ?>,
}).keydown(function (e) {
e.preventDefault();
});
});
</script>