drupal_process_states(&$elements)
Adds JavaScript to change the state of an element based on another element.
A "state" means a certain property on a DOM element, such as "visible" or "checked". A state can be applied to an element, depending on the state of another element on the page. In general, states depend on HTML attributes and DOM element properties, which change due to user interaction.
Since states are driven by JavaScript only, it is important to understand that all states are ap