use getelement by id in get api code example Example: getelementbyid document.getElementById("someid");