get element by id vanila and attribute code example Example: getelementbyid document.getElementById("someid");