Como limitar o valor no meu input? Tentei usar não funcionou usar min="1" e max="3"
function process(quant){
var value = parseInt(document.getElementById("quant").value);
value+=quant;
if(value < 1){
document.getElementById("quant").value = 1;
}else{
document.getElementById("quant").value = value;
}
}
<div data-app="product.quantity" id="quantidade">
<span id="span_erro_carrinho" class="blocoAlerta" style="display:none;">Selecione uma opção para variação do produto</span>
<label>Quantidade:</label>
<input type="button" id="plus" value='-' onclick="process(-1)" />
<input id="quant" name="quant" class="text" min="1" max="3" size="1" type="text" value="1" maxlength="5" oninput="checa(this)" />
<input type="button" id="minus" value='+' min="1" max="3" onclick="process(1)">
</div>
type="number"