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


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



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

  • 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