How to change progressbar background color using javascript
I was looking for how to change the progress bar background color using JavaScript. possibly adding a CSS class to the progress bar from JavaScript.
I have tried but failed. any help will be appreciated.
source code:
javascript:
Code:
function ShowProgressBar(progressBar, progressValue, message) {
progressBar.show();
progressBar.updateProgress(progressValue, message);
//need to add the css class here something like progressBar.addClass('green-bar')
}
CSS:
Code:
.green-bar{
background:#008000;
}