Populate hidden form element value with the value of a text field on form submit (jQuery)

前端 未结 2 1438
谎友^
谎友^ 2021-01-15 09:42

I want to automatically populate a hidden form element with the value of what is entered in a single line text field in a form when submitted. How would this be done with jQ

2条回答
  •  旧时难觅i
    2021-01-15 10:24

    I've found this method to work well across browsers:

    
    
    
    
    Test
    
    
    

提交回复
热议问题