A hidden field only stores those database records that need to be updated when submitting the form. Maybe your JS is not executed and you need to add a function() {} around it all. This value must also be greater than or equal to the value of minlength.. This must be an integer value 0 or higher. How to show that an expression of a finite type must be one of the finitely many possible values? How to follow the signal when reading the schematic? Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, @underscorePez thank you buddy. Staging Ground Beta 1 Recap, and Reviewers needed for Beta 2. There is a text value property that can set and return the value of the value attribute of a text field. Click on See Values. How to set hidden field value in jQuery [2 Ways] ? In JavaScript, you can use following two ways to get hidden field value in a form : document.getElementById (hidden field id).value. If you preorder a special airline meal (e.g. document.getElementById( "hidElem" ).value; for a hidden input element like otherwise you can use textContent property. The difference between the phonemes /p/ and /b/ in Japanese. Conclusion: That's it we just need to change the element ID respectively and with the .val () method we get the value of our input hidden field. The input will fail constraint