<!-- script代码,如果需要引用js文件,请使用与HTML中相同的方式。 -->
<script type="text/javascript">
jQuery("#field16132").bind("change",function(){
//
var Avalue = ~~jQuery("#field16131").val(),
minValue = Avalue * 0.9,
maxValue = Avalue + Avalue*0.1,
Bvalu = ~~jQuery("#field16132").val();
if(Bvalu <= maxValue && Bvalu >= minValue)
{
//正常执行代码
//alert(1)
}
else
{
alert();
jQuery("#field16132").css("background-color","#f00");
}
})
</script>
Please leave a message in the comment area and discuss together~~~
If necessary, please contact WeChat: hdygzh2019 At the same time, please explain your intention and make progress together! ! !