document.getElementById to gt form thats selected code example Example: getelementbyid document.getElementById("someid");