Currently viewing → Tag: es6

Generate JSON from form inputs

While there are tons of libraries to manage forms and to handle input values, here’s a vanilla Javascript implementation of a function to create a JSON object mapping a form structure. The interesting thing about this implementation is that it can be applied to any form without any change and doesn’t require any additional markup: […]

[read more]