Method addInputs documentation

Adds the given data to the given form by inserting hidden inputs.

Example

```javascript let o = {name: "Smith", fname: "John"}; bbn.fn.addInputs(document.getElementById('myform'), o, 'bbn'); // Will write at the end of the given form: // // ```

Example

```javascript let o = { People: [ {name: "Smith", fname: "John"}, {name: "Smith", fname: "Eileen"} ], Dates: ['2021-08-25', '2021-09-06'] }; bbn.fn.addInputs(document.getElementById('myform'), o); // Will write at the end of the given form: // // // // // // ```

Adds the given data to the given form by inserting hidden inputs. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.