Heres the original div tag im working with:
<div class="stadvancedmenu_sub advanced_style_wide col-md-0" style="display: none; overflow: visible;">
My issue is that when I try using jquery code to replace the class name with something else, it doesn't work. It might be the name itself but I don't know. This is what I used:
$('.stadvancedmenu_sub.advanced_style_wide.col-md-0').addClass('ddMenu').removeClass('.stadvancedmenu_sub.advanced_style_wide.col-md-0');
Keep in mind that I can't just go in and change the wording manually or anything since I don't have access to the document to edit it but I can add code to the document to make changes. This is why I'm asking what method I should use to change the name of the class to a much simpler name.
I also tried javascript and tried calling it using this function:
function replace() {
var newClass = document.getElementsByClassName('.stadvancedmenu_sub.advanced_style_wide.col-md-0')[0];
newClass.setAttribute('class','newClassName')
}
replaceClass();
but didn't work because (from my assumption) the name of the class being weird and having spaces etc.