- I am attempting to achieve three different states for a checkbox: one with a tick mark, another as a box, and a third as empty.
- While the code pen is working well with a horizontal line, I am wondering how to display a box instead of a horizontal line.
- However, when using fiddle, I encounter an error:
(index):418 Uncaught ReferenceError: ts is not defined
at HTMLInputElement.onclick
- Could someone assist me in resolving this issue?
- Please find my code provided below.
function ts(cb) {
if (cb.readOnly) cb.checked=cb.readOnly=false;
else if (!cb.checked) cb.readOnly=cb.indeterminate=true;
}