Re: accessing the value of dynamically added fields by Name
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: accessing the value of dynamically added fields by Name

From: Randy Webb <HikksNotAtHome@aol.com>
Date: Thu Mar 30 2006 - 15:57:10 CEST

RobG said the following on 3/30/2006 8:23 AM:
> stellstarin@gmail.com wrote:

<snip>

> function addField (form, fieldType, fieldName, fieldValue)
> {
> if (!document.createElement) return;
> var oInput = document.createElement('input');
> oInput.type = fieldType;
> oInput.name = fieldName;
> oInput.value = fieldValue;

form.appendChild (oInput);

> }

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Received on Mon May 1 04:32:25 2006