I have this style in my custom css stylesheet:
.nav.nav-tabs > li > a {
background-color: #c6dfff;
margin-right: 5px;
padding-left: 20px;
padding-right: 20px;
cursor: pointer;
color: black;
}
I have a button using AngularJS ng-click:
<button type="button" class="btn btn-primary" ng-click="changeColor()">Change Color</button>
When the user clicks on the button, it calls a changeColor method:
$scope.changeColor= function () {
// Change Color Here
};
I want to dynamically change the background-color of the above listed style to a different color.