I'm currently using jQuery 3.3.1. In some views of my application, I remove the text of some table elements. You an see the simple code below.
However, when I generate the PDF, the text in each th/td is not being overwritten with '{blank}' when $original = true. Is there a way to fix this? Or a workaround? I'm using the same PHP template file and hiding/showing elements based on the action. Thanks!
var original = <?= $original ? 'true' : 'false'; ?>;
if(original) {
$('table thead tr th:eq(9)').text('');
$('table tbody tr td:nth-child(10)').text('');
}
However, when I generate the PDF, the text in each th/td is not being overwritten with '{blank}' when $original = true. Is there a way to fix this? Or a workaround? I'm using the same PHP template file and hiding/showing elements based on the action. Thanks!