A properly set ID allows JavaScript and assistive technology to discover the page element.

Selecting the buttons in these examples set the focus to the corresponding text box.