I've this line of code :
<p class="main-description" >Hello world</p>
I want to add a data attribute with JQuery, I can't change the HTML
So I try this :
$('.main-description').data('data-custom','5s');
The final result should be this but it does not work
<p class="main-description" data-custom="5s" >Hello world</p>