我正在验证字段中只填写整数并验证该字段是否需要的字段?只能用整数填充的必填字段
我插入脚本代码如下:
<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小时内发布了3个同类问题 – PSR 2013-05-14 12:31:30
http://stackoverflow.com/questions/16538303/i-want-my-field-to-accept-only-integers-and-i-have-kept- that-field-in-required-v – PSR 2013-05-14 12:32:37
@PSR是的。我正在结束他的其他问题。 – Antony 2013-05-14 12:32:43