The following topic explains how to access page elements, such as forms and user input elements, with JavaScript and how to ensure that each occurrence of the id attribute on a page is unique.
Beehive documentation: Tags Support for JavaScript
Beehive documentation: <netui:scriptContainer>