I have a simple problem. I have a button :
<button id='myid' data-test='some test'>
I want to chante the value of attribute data-test
.
I am using the following jQuery code :
$("#myid").attr("data-test","<script src='<?php echo $linkjs; ?>' >");
this sets the value of data-test
but I want to save this as html value. How can I set it as HTML value ?