'TCPDF - Set check box Read Only
I want to set the check-box as read-only in tcpdf.
I try this
<input type="checkbox" onclick="return false" />
But this is working for html only i mean in tcpdf its not working.
Solution 1:[1]
try this for check-box as read-only in tcpdf ... it works for me
<input type="checkbox" name="box" value="1" readonly="true" />
Solution 2:[2]
This is an example which should work in your case:
<input type="checkbox" name="agree" value="1" checked="checked" readonly="true" /> <label for="agree">I agree </label><br /><br />
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Rehab Gamal |
Solution 2 | Ernest Elikem |