I have this pdf report that contains a very complex DOM Tree, so to collect my certain divs and apply my style I decided to use javascript like this:
<script type="text/javascript">
function set_style() {
var tickets = document.getElementByClass('ticket');
for (ticket in tickets){
if (tickets.indexOf(ticket) in [2, 4, 6]) {
ticket.style.padding-left='15px!important;';
}
}
}}
</script>
When I generate my pdf report nothing has changed.
Anyone has an idea? Thank you.