- Sat Dec 09, 2017 4:53 am
#812494
Hi
I want to change the background color using the following commands but it does not work correctly
The amount is taken through the dynaform
Thanks
$("#sumval").getControl().change( function() {
if (parseFloat($("#sumval").getValue())>= 5000000)
$("#sumval").getControl().css("backgroundColor", "red");
//$("#sumval").getHintHtml()[0].style.color="red"
else
$("#sumval").getControl().css("backgroundColor", ""); //set border to its default color
} );
I want to change the background color using the following commands but it does not work correctly
The amount is taken through the dynaform
Thanks
$("#sumval").getControl().change( function() {
if (parseFloat($("#sumval").getValue())>= 5000000)
$("#sumval").getControl().css("backgroundColor", "red");
//$("#sumval").getHintHtml()[0].style.color="red"
else
$("#sumval").getControl().css("backgroundColor", ""); //set border to its default color
} );