I have a Display object that shows the result of a SQL calculation. I tried setting the Custom Code section to run this code on the Load (onload) event:
Code: Select all
if (parseFloat($("#my_object_id").val()) > 0) {
$("#my_object_id").css("color", "red");
} else {
$("#my_object_id").css("color","black");
}
However, the onLoad event never seems to set this off. I have checked to see that my code works by setting it to fire under the onBlur event, which all works fine.
Any idea why the onLoad event doesn't fire for this object? Does it have anything to do with the nuLoad() function?