-
-
Save kjohnson/fdba753c10da8d556f36811e71d7d7da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fieldID = 197; | |
var newValue = 'compactpro'; | |
jQuery( '#nf-field-' + fieldID ).val( newValue ).trigger( 'change' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to use jQuery to fill out a hidden field. The value is will be read from an Tag with a "data" ATTR.
I used the .trigger('change') function but it's not working.
It's a multi-step form and as soon as I'm changing the step the field will be empty.
Is there any way to fix this?