|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I would like to know how to define hidden input types dynamically and reference them using Javascript? e.g. <input type="hidden" name="ProdTxt" value="Product"> where name is actually dynamically defined in a loop as ProdTxt1, Prodtxt2 etc. depending on the total number of products selected by User. |
|
#2
|
|||
|
|||
|
¿Have you tried with something similar to
document.write("<input type='hidden' name='"+your_Var_ProdTxt+"' value='Product'> ");? Then you can reference them by the name. <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by CP: Hi, I would like to know how to define hidden input types dynamically and reference them using Javascript? e.g. <input type="hidden" name="ProdTxt" value="Product"> where name is actually dynamically defined in a loop as ProdTxt1, Prodtxt2 etc. depending on the total number of products selected by User.[/quote] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Dynamic Hidden Input Fields |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|