getElementById method

Element? getElementById(
  1. String id
)
inherited

Implementation

Element? getElementById(String id) => querySelector('#$id');