There's already a HTML attribute pair for this exact purpose - min and max : <input type="number" min="1" max="50">.
確定! 回上一頁