How get checked value of checkbox?


Topic: How get checked value of checkbox?

pschael pro asked 4 months 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 months ago

Thanks for the report. I will check it.


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: React
  • MDB Version: 4.25.5
  • Device: MacBook
  • Browser: Chrome
  • OS: OS X
  • Provided sample code: No
  • Provided link: No