The site has links with pop-up tips, decorated through the title attribute
It is necessary to replace the title attribute with the data-yjsg-tip attribute and add the "yjsg-tip-top" class to the link itself.
Like now:
<a href="http://site.ru" title="Π’Π΅ΠΊΡΡ ΠΏΠΎΠ΄ΡΠΊΠ°Π·ΠΊΠΈ">Π’Π΅ΠΊΡΡ ΡΡΡΠ»ΠΊΠΈ</a> How to:
<a href="http://site.ru" class="yjsg-tip-top" data-yjsg-tip="Π’Π΅ΠΊΡΡ ΠΏΠΎΠ΄ΡΠΊΠ°Π·ΠΊΠΈ">Π’Π΅ΠΊΡΡ ΡΡΡΠ»ΠΊΠΈ</a> If adding a class to a link is more or less clear (via addClass ), then the attribute cannot be replaced, the replace does not work, and if you remove the attribute ( removeAttr ) and try to create a new one, then the values ββalready present in the title attribute are lost .
Is this even possible to do? If yes, then how to solve this problem in the form of a script?