Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I want to add some custom JS functionality to my page. For this I want to add a value into the 'data-value' tag of the title.
What I want in HTML code is this: <h1 id="h" data-value="HYPERPLEXED">HYPERPLEXED</h1>
<h1 id="h" data-value="HYPERPLEXED">HYPERPLEXED</h1>
Thanks in advance.
Use the custom HTML widget and write your HTML in there.
You can find the custom HTML widget by pressing the add widget (plus sign with blue background) button on the top left of the toolbar.
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.