Topic: How get checked value of checkbox?

pschael free asked 4 years ago

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" />

Piotr Glejzer staff commented 4 years ago

Thanks for the report. I will check it.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • 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