I have
<?php
include('print.php')
?>
That echoes html code inside my document, and after I load it I can't access the divs by id with jQuery
$("#"+divId)
It doesn't work even from chrome's console. I can access them with plain javascript
document.getElementById(divId)
If I hardcode the divs I can access them via jQuery. Can anyone explain me why php-generated code is not accessible via jQuery?