Hello,
Attempting to pull budget data through a database lookup which would then be inputted into a field; then I hope to style the input color based on being a negative or positive numbers. Any ideas? My CSS/Javascript skills are minimal, really I just copy, paste and test :P
I started with this, which does not work.
$(document).ready(function(){
$('.RedOrGreen input').each(function ()
if ($(this).val()>0);{
this.setAttribute('color: green');
}
else if ($(this).val()<=0);{
this.setAttribute('color: red');
}
});
});
Thx!