Disclaimer: know nothing about mPDF :(
I'm creating a PDF file using mPDF, I've manage to get the table printed successfully. I'm having some issues when it comes to getting my checkboxs checked. The checkboxes does not get checked in PDF view, but if I view the same code in HTML it does get checked. for instance
$output .= '<td width="50%" colspan="2">';
$output .= '<strong>Instructed Another Solicito?</strong> ';
$output .= 'Yes <input type="checkbox" checked /> ';
$output .= 'No <input type="checkbox" />';
$output .= '</td>';
If I view them in HTML echo $output;
format yes is checked but as soon as I output a pdf file i.e. $mpdf->WriteHTML($html); $mpdf->Output();
show as unchecked.
What do I have to do in order to get my checkboxes checked is there any other way to get this
Any Idea?
You should use checked="checked"