Useful Links
Computer Science
Programming
By Language
JavaScript and the DOM
1. Introduction to the Document Object Model (DOM)
2. Selecting DOM Elements
3. Traversing the DOM Tree
4. Manipulating DOM Elements
5. Creating and Inserting DOM Elements
6. Handling Events
7. Working with Web Forms
8. Advanced DOM Concepts
Working with Web Forms
Accessing Forms
document.forms Collection
Selecting Forms by Name
Selecting Forms by Index
Form Element Access
Form Elements
elements Collection
Accessing by Name
Accessing by Index
Element Types
Form Field Values
Text Input Values
value Property
Input Validation
Textarea Values
value Property
Content Handling
Select Element Values
value Property
selectedIndex Property
options Collection
Checkbox Values
checked Property
value Property
Radio Button Values
checked Property
Radio Button Groups
Select Options
Single Selection
Multiple Selection
Option Manipulation
Form Submission
submit Event Handling
Preventing Default Submission
Programmatic Submission
submit() Method
Form Data Collection
Form Validation
Client-Side Validation
Required Field Validation
Pattern Matching
Custom Validation Logic
Validation Feedback
Constraint Validation API
checkValidity() Method
setCustomValidity() Method
Validation States
Validation Messages
Previous
6. Handling Events
Go to top
Next
8. Advanced DOM Concepts