#100448
admin
Keymaster

Hello Starlight Sparkle,
Thank you for your interest. The proper way to update a tab item’s label and/or content is by calling the method update. Here is an example of setting only the title:
document.getElementById('tabs').update(0, 'Updated title');
If you wish to change the content, too, pass a third argument, e.g.:
document.getElementById('tabs').update(0, 'Updated title', 'Updated content');
Here is also a demo that showcases this method among others: https://www.htmlelements.com/demos/tabs/insert-remove-update/.
Best regards,
Dimitar
Smart HTML Elements Team
https://www.htmlelements.com