Home > front end > Pan micro e - cology8 cell according to the field values change color
Pan micro e - cology8 cell according to the field values change color
Time:10-01
Such as topic, the current implementation is submitted if the value is not equal to 0 will cell fill in yellow, but want to achieve is, need not submit, directly determine the value of a field, change the cell color is not equal to zero, don't know how to write
& lt; ! - the script code, if you need any reference js file, please use the HTML in the same way, - & gt; JQuery (document). Ready (function () { CheckCustomize=function () { Var ret=true; If (ret) { Var a1=jQuery (" # field12015 "). Val (); If (a1=0) { Ret=true; } else {
JQuery (" # field12015 "). The CSS (' background - color ', 'yellow'); Ret=false; }
return ret; } }; });
</script>
CodePudding user response:
For listening text box change
JQuery (document). Ready (function () { JQuery (" # field12015 "). BindPropertyChange (function () { Var a1=jQuery (" # field12015 "). Val (); The if () { . } else { . } }); });