0
I am using this code to pass the text of a label to class:
$('label').each(function() {
const el = $(this);
el.addClass( 'pay-' + el.text() );
});
However, I need to use words with accentuation, which ends up disabling.
<label for="P1386_ID_FORMA_MEIO_1" class="pay-Cartão">Cartão</label>
with I could remove the accentuation only of the created class?
https://answall.com/a/406366/112052
– hkotsubo