I am messing with checkboxes and I want to know that is there a way in which I can uncheck a checkbox on click of a button by calling a function?? If so? How can I do that?
<input type="checkbox" className="checkbox"/>
<button onClick={()=>this.unCheck()}
How can I uncheck the checkbox programatically and what if I have multiple checkboxes generated dynamically using map function. How can I uncheck them If I want to??
Any help much appreciated.. :)
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire