Main / Social / Document.getelementbyid
File size: 5mb
18 May The Document method getElementById() returns an Element object representing the element whose id property matches the specified string. The getElementById() method returns the element that has the ID attribute with the time you want to manipulate, or get info from, an element on your document . Form validation: var at = tomthepen.commentById("email")tomthepen.comf("@"); var age = tomthepen.commentById("age").value; var fname = document.