Accessing form objects when there are multiple forms

added by learndotnet
9/28/2010 2:49:45 AM

0 Kicks, 46 Views

In order to access a form through Javascript, we need to obtain a reference to the form object. One obvious way to approach, which you have already seen, is to use the getElementById method. For instance, if we had a form with the id attribute "subscribe_frm", we could access the form in this way: