代码如下:
<script>
jQuery(document).ready(function(){
jQuery("#field7541").bind('blur',test);//数值字段属性为field7541
});
function test() {
var count = jQuery("#field7541").val();数值字段属性为field7541
if (count<0.5) {
jQuery("#field7541").val(""); //赋值为空
alert("你填写的值必须大于等于0.5");//弹出框提醒
}
}
</script>