×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: userc865b
Added: Jun 1, 2017 10:09 AM
Views: 4
Tags: js
you can define attributes in tags and get the value of them
  1. <input id="test" was="Hallio" value="1"/>
  2. document.getElementById("test").getAttribute("was") // -> Hallio