<script>var jQ = $.noConflict(true);
jQ(document).ready(function(){
// ver 4
jQ("#item3").css("display", "none");
jQ("#item4").css("display", "none");
jQ("input[name='fild1'],input[name='fild2'],input[name='fild3']").change(function(){
var fild1 = parseFloat(jQ("input[name='fild1']").val());
var fild2 = parseFloat(jQ("input[name='fild2']").val());
var fild3 = parseFloat(jQ("input[name='fild3']").val());
if(jQ.isNumeric(fild1) && jQ.isNumeric(fild2) && fild1 !='' && fild2 != '' ){
var result1 = Math.ceil(((fild1+fild2 )-(fild1*0.04))/0.375);
var result2 = 0;
jQ("input[name='result1']").val(result1);
if((fild1+fild3) <=8){
result2 = Math.ceil(8/0.375);
}
else{
result2 = Math.ceil(fild1+fild3);
}
jQ("input[name='result1']").val(result1);
jQ("input[name='result2']").val(result2);
alert('Ver. 4\n Result 1 = '+result1+'\n Result 2 = '+result2);
}
else{
jQ("input[name='result1']").val('');
jQ("input[name='result2']").val('');
}
});
});</script>
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com