withId

fun withId(elementId: String): ElementTarget(source)

Search globally for an element matching a target ID.

In this case, the starting element that triggers this search is ignored.

For example:

ElementTarget.withId("user-info")

There shouldn't be multiple elements in your DOM tree with the same ID, but if there are, then this will have the same behavior as document.getElementById(...)