How get checked value of checkbox?


Topic: How get checked value of checkbox?

pschael pro asked 5 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 5 years ago

Thanks for the report. I will check it.


Please insert min. 20 characters.

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