Form Elements by ID Demo

Gender

Change a field to see its ID, name, and current state.

Tutorial on getElementById() with forms

Document object reference ยท getElementsByTagName()