View Full Version : Hiding a part of form.
Amandeep
12-03-2002, 08:49 AM
I want to hide a certain part of a form which should work both in Netscape and IE.The code i have is working fine in IE but doesn't work at all in Netscape.I have used <Div> tag. The code is attached
glenngv
12-03-2002, 08:59 AM
you should put the field in the layer inside another form tag:
else if(navigator.appName=='Netscape')
{
document.write('<layer id=frmShow VISIBILITY=SHOW><form name="form2">')
document.write('<INPUT type="text" name=Text1 value="blah"><br>')
document.write('</form></layer>');
}
to access the value of the field Text1 in NS4:
document.layers['frmShow'].document.form2.Text1.value
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.