HTMLsnippet Java script: call function after data is loaded

0
I have create a piece of java script code that is able to change the class of a table row based on the value of a field. This could be very useful to highlight a table row based on a value. Sample of the working java script I have added the script in the HMTLsnippet widget. The script runs at the event "onload" but unfortunately the data is not on that moment. How do i make this script run after the data is populated? Or will this never work at all? Thank you
asked
2 answers
1

You have to create a function and add the function to the onChange event of the field.

answered
1

See the helptext widget that uses the addOnLoad() function.

answered