Array to hidden input field

prerecevy

New Member
Is it possible to put an Array values to a hidden input field?I am using ASP Classic code with javascript.I have this asp code that puts every content of an Array to my hidden field.\[code\]Dim Data For Each Data in aRecords(14) Response.write "<INPUT type='hidden' name='hdn_field' value=""" & Data & """>" Next\[/code\]It appears in the view source like this:\[code\]<INPUT type='hidden' name='hdn_field' value="http://stackoverflow.com/questions/14358383/arrayvalue1"><INPUT type='hidden' name='hdn_field' value="http://stackoverflow.com/questions/14358383/arrayvalue2">\[/code\]But when i try to get the value of the "hdn_field" via javascript code. It doesn't work.I call it by doing this (javascript):\[code\]testValue = http://stackoverflow.com/questions/14358383/document.frm_MainPage.hdn_field.value\[/code\]I'm not sure if the mistake is in it's way of assigning it to hidden field or by the way i call it in javascript.Please help.Your help will be greatly appreciated.Thank you.
 
Back
Top