Topic: change checkbox color dynamically
michelle_126 priority asked 2 years ago
Hi,
checkbox default backgroud-color is blue in color, and I have 3 checkbox, which is checkbox A, checkbox B and checkbox C. may i know how to change checkbox back-ground color to red for checkbox B when i click button and NOT effect to checkbox A and checkbox C?
Thanks
Add comment
Dawid Wajszczuk staff answered 2 years ago
Hi,
Just use selector with id in your CSS. Here is the snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3743202#css-tab-view.
Keep coding,
Dawid
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.10.2
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No