Topic: How get checked value of checkbox?
I tried to get the checked state of a checkbox. I tried it with getValue, but the value is always empty. I tested my code with switch component and there it works fine.
<MDBInput label="Filled-in unchecked" checked={false} getValue={(value) => { console.log(value)}} type="checkbox" id="checkbox2" />
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: 4.25.5
- Device: MacBook
- Browser: Chrome
- OS: OS X
- Provided sample code: No
- Provided link: No
Related topics
Piotr Glejzer staff commented 5 years ago
Thanks for the report. I will check it.