On occasion, a developer will require that certain elements of a page stay invisible to users while others become visible, depending on a user’s action. In this case, the user makes a selection on a drop-down menu and the selected table row becomes visible while the rest remain hidden.
First, we establish the script and begin to define the function:
[javascript]