See the Prototype.js documentation
$
— id (String | Element) — A DOM node or a string that references a node's ID
$$(cssRule...)
— Takes an arbitrary number of CSS selectors (strings) and returns a document-order array of extended DOM elements that match any of them.