[FO] input number 에 min, max 추가

This commit is contained in:
김현주
2025-06-26 14:10:44 +09:00
parent a87e5b3959
commit 9e75730b9c
10 changed files with 38 additions and 38 deletions

View File

@@ -120,7 +120,7 @@
</label>
</div>
<div class="input-field">
<input type="number" id="count" placeholder="수량을 입력해 주세요" name="count" class="limitDecimalLength"
<input type="number" id="count" placeholder="수량을 입력해 주세요" name="count" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
<ul class="guide-info">
@@ -181,7 +181,7 @@
</div>
<div class="input-field type-price">
<input type="number" id="price" name="price" placeholder="금액을 입력해 주세요"
class="limitAmountLength"
class="limitAmountLength" min="1" max="9999999999"
maxlength="10" inputmode="numeric" pattern="[0-9]*" oninput="kri.form.maxlength(this)">
<span class="input-field-txt">원</span>
</div>

View File

@@ -83,7 +83,7 @@
</label>
</div>
<div class="input-field">
<input type="number" id="count" placeholder="수량을 입력해 주세요" name="count" class="limitDecimalLength"
<input type="number" id="count" placeholder="수량을 입력해 주세요" name="count" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
<ul class="guide-info">
@@ -145,7 +145,7 @@
</label>
</div>
<div class="input-field type-price">
<input type="number" id="price" placeholder="금액을 입력해 주세요" name="price"
<input type="number" id="price" placeholder="금액을 입력해 주세요" name="price" min="1" max="9999999999"
class="limitAmountLength"
maxlength="10" inputmode="numeric" pattern="[0-9]*" oninput="kri.form.maxlength(this)">
<span class="input-field-txt">원</span>

View File

@@ -62,7 +62,7 @@
</div>
<div class="input-field">
<input type="number" id="availableArea" placeholder="가능 면적을 입력해 주세요"
name="availableArea" class="limitDecimalLength"
name="availableArea" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
</div>
@@ -96,7 +96,7 @@
</div>
<div class="input-field">
<input type="number" id="landArea" placeholder="작업 면적을 입력해 주세요"
name="landArea" class="limitDecimalLength"
name="landArea" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
<ul class="guide-info">
@@ -117,7 +117,7 @@
</div>
<div class="input-field">
<input type="number" id="mainYield" placeholder="수확량을 입력해 주세요"
name="mainYield" class="limitDecimalLength"
name="mainYield" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
</div>
@@ -176,7 +176,7 @@
</div>
<div class="input-field">
<input type="number" id="mainSaleAmount" placeholder="판매량을 입력해 주세요"
name="mainSaleAmount" class="limitDecimalLength"
name="mainSaleAmount" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
</div>
@@ -235,7 +235,7 @@
</div>
<div class="input-field">
<input type="number" id="subYield" placeholder="수확량을 입력해 주세요"
name="subYield" class="limitDecimalLength"
name="subYield" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
</div>
@@ -294,7 +294,7 @@
</div>
<div class="input-field">
<input type="number" id="subSaleAmount" placeholder="판매량을 입력해 주세요"
name="subSaleAmount" class="limitDecimalLength"
name="subSaleAmount" class="limitDecimalLength" min="1" max="9999999999"
inputmode="decimal" pattern="[0-9]*" maxlength="10" oninput="kri.form.maxlength(this)">
</div>
</div>

View File

@@ -85,13 +85,13 @@
</div>
<div class="component-input">
<div class="input-field">
<input type="number" th:field="*{tel2}"
<input type="number" th:field="*{tel2}" min="0" max="9999"
maxlength="4" inputmode="numeric" pattern="[0-9]*" oninput="kri.form.maxlength(this)"/>
</div>
</div>
<div class="component-input">
<div class="input-field">
<input type="number" th:field="*{tel3}"
<input type="number" th:field="*{tel3}" min="0" max="9999"
maxlength="4" inputmode="numeric" pattern="[0-9]*" oninput="kri.form.maxlength(this)"/>
</div>
</div>
@@ -113,13 +113,13 @@
<div class="component-input">
<div class="input-field">
<input type="number" id="temp_input_0006" th:field="*{phone2}"
<input type="number" id="temp_input_0006" th:field="*{phone2}" min="0" max="9999"
maxlength="4" inputmode="numeric" pattern="[0-9]*" oninput="kri.form.maxlength(this)">
</div>
</div>
<div class="component-input">
<div class="input-field">
<input type="number" id="temp_input_0007" th:field="*{phone3}"
<input type="number" id="temp_input_0007" th:field="*{phone3}" min="0" max="9999"
maxlength="4" inputmode="numeric" pattern="[0-9]*" oninput="kri.form.maxlength(this)">
</div>
</div>