Re: Filling form fields using javascript

by JimMenees(at)aol.com

 Date:  Wed, 22 Aug 2001 15:42:10 EDT
 To:  <hwg-languages(at)hwg.org>,
<Reywob(at)aol.com>
  todo: View Thread, Original
I'm a newby to javascript, but apparently there's a newly recognized member of the DOM which is: getElementByID( );
whereby you can provide elements (div tags mainly?) an id="name", and then use the getElementByID( ); to pull that element into your script.  

You might try reading up on this and restructure your javascript to access the form fields by that manner rather than by the field name.  

Could you also assign a variable name to the existing field, and then refer to the variable name rather than the actual formfield name?
var newName = new document.formname.fieldname

Hope this helps generate some ideas & solutions! 

Jim 

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA