필드의 유효성 검사를 수행 할 때 입력란이 정수로 채워 져야하며 필드가 필요하다는 유효성 확인이 수행됩니다.정수로만 채워야하는 필수 입력란
<script type="text/javascript" src="jquery.numeric.js"></script>
<script>
jQuery(document).ready(function(){
$("#estvalue").numeric({
negative: false
},
function() {
alert("No negative values");
this.value = "";
this.focus(); });
});
</script>
<input name="Est_Value" id="estvalue" class="regi_input_1" style="width: 150px; height: 25px;" type="text" />
그는 2 시간 이내에 같은 종류의 질문을 올렸습니다. – PSR
http://stackoverflow.com/questions/16538303/i-want-my-field-to-accept-only-integers-and-i-have-kept- that-field-in-required-v – PSR
@PSR 네. 나는 그의 다른 질문을 닫고있다. – Antony