Anyhow you can also access to the input value parameter through the document.FormName.checkyear.value. Valid for the file input type only, the accept attribute defines which file types are selectable in a file upload control. JS code to get hidden field value by Id Here we create a js function, and by using document.getElementById will select our hidden field by its Id, and with .value will get the hidden field value. accept. Why do small African island nations perform better than African continental nations, considering democracy and human development? The basic idea is that if a user is filling in a sensitive form, such as a form on their banking website to transfer some money to another account, the secret they would be provided with would prove that they are who they say they are, and that they are using the correct form to submit the transfer request. vegan) just to try it, does this inconvenience the caterers and staff? What is the point of Thrower's Bandolier? Anyhow you can also access to the input value parameter through the document.FormName.checkyear.value. See an example here. How do I get the values of classes in jQuery? By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Syntax: Example: html How to follow the signal when reading the schematic? This can be used to detect changes in a or