dcsimg
Accessing Hidden values with same Name
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, August 29, 2002 01:18 PM

How do you access Hidden Form Fields with the same name in Java script. I need their values

Re: Accessing Hidden values with same Name

Posted By:   Firat_Tiryaki  
Posted On:   Wednesday, September 4, 2002 06:48 AM

you can use hidden field as an array



Re: Accessing Hidden values with same Name

Posted By:   Nitesh_Naveen  
Posted On:   Friday, August 30, 2002 01:36 AM

If you have more than one field with the same name, it'll be treated as an array. So if you have 2 hidden input fileds with name 'myhid' in the form 'myfrm' you can access them as...
var firstVal = document.myfrm.myhid[0].value;
var secondVal = document.myfrm.myhid[1].value;

Re: Accessing Hidden values with same Name

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, August 29, 2002 01:48 PM

myformname.myfieldname.value

About | Sitemap | Contact