<<Index

Javascript - DOM Traversing with querySelector

Javascript DOM Traversing with querySelector

The init() function is called by <body onload="init()">

Only the first <li> responds as querySelector works for the first match.

Snippet: