Hello I’m just learning how to use the Mendix Modeler and I was wondering if anyone can tell me how to use the Set Attribute widget? I’m trying to add a class name to a list item within an unordered list. Or maybe add the class name to a list item when the list item has a certain class name within it. I hope this makes sense? Thank you. Sam...
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.
Tim van Steenbergen
So i can use this widget to add a class name to a list item <li> that has a class name (progressOuter). See image.