I found script type text/php when I using dompdf library, I want to try pass value inside text/php to text/javascript.
so I have code like this with type="text/php"
<script type="text/php">
$myText = 'This is My text';
</script>
and i want to pass value to jquery
<script type=text/javascript>
$('.tess').text($myText);
</script>
and my html like this <div class="tess"></div>
, this should return "This is my text"
it's possible to pass it?
for reference see this question, dompdf uses script type=text/php and I want to pass it into jquery so I can get the value How can I get the total number of pages in DOMPDF?