var = document.getElementById('add') code example Example: getelementbyid document.getElementById("someid");