Skip to main content
Participant
January 16, 2010
Question

Accessing Input Field Values on Tabbed Pages

  • January 16, 2010
  • 1 reply
  • 351 views

I have a page in which I am trying to replicate a Windows dialog box with tabs.  On the main web page, I use the ColfFusion <cflayout type = "tab"> and the <cflayoutarea> tags to create the tabbed user interface.  The content of each tab is created in a separate .cfm file that is referenced in the source attribute of the cflayout tag.  The separate tabs each contain various input controls (text, select, list, etc.).

On the main page that lays out the tabbed interface is a button. When the button is clicked, I want to process the data that the user inputs into the controls on the tab pages using a JavaScipt function that is called by the onclick attribute.  How do I access the data values from the input controls on the tab pages?

This topic has been closed for replies.

1 reply

27SpartanAuthor
Participant
January 19, 2010

OK, I figured it out.  I can access the controls on the various tab pages using:

     document.getElementById(element id).value