I have JQuery tabs in the frontend, if I inspect one tab I have this:
<a id="dynautoRollAnchor1" href="#item1" style="font-size:13px" class="ui-tabs-anchor" role="presentation" tabindex="-1">
<img src="someImage.png" class="tab-icon">
1995
</a>
I'd like to replace the 1995 with another value (and keep the image).
But if I execute this in the console:
$('#dynautoRollAnchor1:last-child').empty()
I will have this:
<a id="dynautoRollAnchor1" href="#item1" style="font-size:13px" class="ui-tabs-anchor" role="presentation" tabindex="-1">
</a>
So the image is gone...
Or how to replace the 1995 with let's say 2022 ?