Click here to Skip to main content
16,016,882 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
How to retrieve value of an itemtemplate field in javascript?Please help me.
The item template field is an hidden field value in the .aspx page
Posted

1 solution

Code for obtaining a reference to a hidden input element:
JavaScript
oHidden = oForm.elements["hidden_element_name"];

To get the value of this element:
JavaScript
hidden_val = oHidden.value;


Please refer this link:
how to get hidden field value in java script
[^]
How to get the value of a form element using JavaScript[^]
 
Share this answer
 
Comments
Sandeep Mewara 16-May-12 9:49am    
Comment from OP:
what is oForm here? can i use oForm within a javascript?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900