javascript set hidden field value before submit 26 Javascript Set Hidden Field Value Before Submit To change value of input, use the concept of document. The syntax is as follows −. document.yourFormName.yourTextName.value… Written By Kathleen D. Walker Saturday, February 12, 2022 Add Comment Edit