HTML
<div id="wrapper" class="wg-92"></div>
JS
const wrapper= document.querySelector('#wrapper');
if (wrapper.classList.contains('wg-')) {
console.log('success')
}
I want it so that even if the class contains wg- it will work. For now if it contains exactly wg- it works but I want it to work even with wg-92. This should be runned if the class just contains wg-