Update class for a ListItem using javascript

0
Im looking to update CSS class for a ListItem in navigation menu using javascript, to highlight the item in Navigation Menu when landing using microflow/nanoflow.   using document.getElementById we can update the class in a javascript, but the NavigationList item in mendix  has data-item-id(and not id) which the javascript is unable to fetch. Something Im missing out or an alternate solution?
asked
0 answers