Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize form values from object #128

Open
KES777 opened this issue Sep 17, 2021 · 0 comments
Open

Initialize form values from object #128

KES777 opened this issue Sep 17, 2021 · 0 comments

Comments

@KES777
Copy link

KES777 commented Sep 17, 2021

It would be nice to do vice versa: from given hash setup form values

$("form").setData({foo: {bar: "a", bof: "b"}, hello: "world"});

which in turn will fill corresponding form fields with given values:

<input name="foo[bar]" value="a">
<input name="foo[bof]" value="b">
<input name="hello" value="world">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant