How can I pass input from a text-type input element into a hidden input element in the same form on a site that has jquery installed?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
Assuming that you have only one field of each type:
If you have more add IDs to selectors
If
input_1
is the id of the input you want to populate, andinput_2
the id you want to populate from, use:Triggered when the text changes:
Triggered when the form submits:
Check out other jQuery Events.