<input id="test" value="123" name ="test" verify="NOTNULL">
In some HTML, I saw the input
tag has the attribute verify
. How to add it to the input tag?
I tried the code
alert(document.getElementById("test").verify)
the result is undefined
.
How do I add a new attribute to the element?