macek/jquery-serialize-object

Initialize form values from object

KES777 opened this issue · 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">