I want to have a read-Only checkbox and disable the toggle( checked /unchecked) when I click the checkbox. Which possiblities I have? This is my code:
<label className="checkbox">
<input type="checkbox"/>
</label>
I read a post where this workaround is proposed:
<input type="checkbox" onclick="return false" />
...but how can I use it in React?
Aucun commentaire:
Enregistrer un commentaire