jquery-serialize-object icon indicating copy to clipboard operation
jquery-serialize-object copied to clipboard

Initialize form values from object

Open KES777 opened this issue 4 years ago • 0 comments

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">

KES777 avatar Sep 17 '21 11:09 KES777