Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: How get checked value of checkbox?

pschael pro 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.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

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