Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Look for value change on all inputs inside HTML element
- $('.formyoula-HTML :input,textarea').keyup(function(){
- //Set value of corresponding hidden element
- if ( $(this).val() && $(this).attr('name') && window.formyoula.form_fields[$(this).attr('name')] ) {
- window.formyoula.form_fields[$(this).attr('name')].set({value:$(this).val()});
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement