Consider a hiddenfield in the page HfId
<input type="hidden" id="HfId"/>
How to assign,clear and get value of a hidden field in jquery? ANy suggestion…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Element Selector of jQuery is exactly designed for this. It allows you to select all elements which fit the given name, id or class:
The visibility or other properties of the element does not interfere with that, as it is still present in the DOM of the document.
Fields have the overloaded function
val(),val($value)which allows you to get and set the value of the field: