Method formdata documentation
Returns all the data contained in a form as a single object.
Example
```javascript
//
bbn.fn.formdata(document.getElementById('myform'));
// {name: "Smith", fname: "John"};
```
Example
```javascript
//
bbn.fn.formdata(document.getElementById('myform'));
// {
// People: [
// {name: "Smith", fname: "John"},
// {name: "Smith", fname: "Eileen"}
// ],
// Dates: ['2021-08-25', '2021-09-06']
// }
```
Returns all the data contained in a form as a single object. 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.
© 2011-2023
BBN Solutions