The PHP snippet in the code below creates a div with id universals.
However in the javascript further down when I try to access this value I get null. Obviously the PHP is generated server side. So I would have thought that the data would be available by the time the script runs on the client.
What can I do to fix?
Do an onload in the body.
Add this after your body