Hi, I am trying to add CSS class to a disabled checkbox when clicking a button. Here is the code, but it doesn't work, please help.
- <style>
.input[type="checkbox"]:disabled + label{
outline:5px solid red;
background-color:red;
}
- </style>
- <script>
.input[type="checkbox"]:disabled + label{
outline:5px solid red;
background-color:red;
}
- </script>