I have some html that is generated programmatically using javascript at runtime.
I want to be able to dynamically change the css properties of this html e.g.
$(".pointsbox").css("background-color","green");
but it appears to not work as those html elements are not available at the time that the css change is called.
I am pretty sure I have managed to do this before but I've forgotten what the function is called.
Any help much appreciated!