|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Ok,. here's the thing. i have 3 forms in one page, each have a unique name... yet they are each in a different <span id=whatever> i want to have one of the forms validated for invalid characters before submittal. i cant seem to get Netscape to find any of the forms. IE (of course) seems to find them perfectly well. How do i get Javascript/Netscape to find the form and access its elements?
|
|
#2
|
|||
|
|||
|
Just doing this off the top of my head but for NS try to reference the elemenet with something like:
document.layers.SPANNAME.document.forms.FORMNAME.etc etc Is NS6 a factor? |
|
#3
|
|||
|
|||
|
Instead of using (or as well as using) the ID parameter use the NAME parameter, I have a page with two forms and have found that I had to use the NAME parameter to reference any objects specific to that form. Not sure if this is the same problem but it is something to try. Also instead of worrying about the name of the span try using the name of the form to refernce your objects.
<form id="frmOne" name="frmOne"> <input type="xxx" id="xxx" name="xxx"> </form> <form id="frmTwo" name="frmTwo"> <input type="xxx" id="yyy" name="yyy"> </form> |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Forms.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|