I will explain the question using an example. Suppose I have a css class called 'custom-background', and on a button click, I wish to change the background color property of all elements associated with this class to, say, red. On another click, I wish to change it to yellow, and there might be a case where I wish to remove the background-color override coming due to association with this class.
Is there a way to achieve this using JavaScript? I know I can specifically override properties of elements associated with the class, but I don't think I can completely remove a particular attribute. Therefore, I am looking for a way to modify the CSS attributes associated with a class.