change checkbox color dynamically


Topic: change checkbox color dynamically

michelle_126 pro premium priority asked 3 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


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


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: Pro
  • 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
Tags