Like this you mean?
If you are having difficulty to get the correct query, just in your browser on the page where you want to make the change, inspect your element (or press F12), go to the console and try some queries $('.myclass’) or $('ul’) for the unordered list.
So i can use this widget to add a class name to a list item <li> that has a class name (progressOuter). See image.