Embedded script tag
Writing to the DOM
Calculating an HTML string
Binding by ID
Binding 1 by Class
Binding 2 by Class
Change style
Change style 1
Change style 2
Get id attribute
Set class attribute
Add class
Remove class
Hide me
Show me
Appending new elements
Removing elements
- Line item 1
- Line item 2
- Line item 3
- Line item 4
- Line item 5
Emptying elements
- Line item A
- Line item B
- Line item C
- Line item D
- Line item E
Change content
Change me
Navigating the DOM hierarchy
Event handling
Click event
Anything can be clickable
Event target
Hi/show element