UNPKG

formit

Version:

A speedy way to create HTML forms.

36 lines (34 loc) 676 B
<!doctype html> <html> <head> <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css' /> </head> <body> <form> <div id='form'></div> </form> <script src="./index.js"></script> <script> /** * Example */ Formit('#form', [ { label: 'First name', type: 'text', placeholder: 'First', autofocus: true, }, { label: 'Last name', placeholder: 'Last', type: 'text', }, { type: 'submit', value: 'Go!' }, ]) </script> </body> </html>