I am curious if it is possible using javascript to take an existing html statement like
<input id="name">
and transform it to
<input id="name" asdf="fdsa">
Yes , try this:
document.getElementById("name").setAttribute("user-attr","Hello")
Pure Vanilla Javascript!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With