Topic: change checkbox color dynamically

michelle_126 priority asked 9 months 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


Dawid Wajszczuk staff answered 9 months 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



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

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