Simple Form

Working with forms is common for a web developer. However, there is no way to create a unique template for all use cases. The w2ui library streamlines most common tasks for you. The example below shows a simple form with two required fields, save and reset buttons.
First Name:
Last Name:
Text Area:
$(function () { $('#form').w2form({ name : 'form', url : 'server/post', fields: [ { name: 'first_name', type: 'text', required: true }, { name: 'last_name', type: 'text', required: true }, { name: 'comments', type: 'text'} ], actions: { reset: function () { this.clear(); }, save: function () { this.save(); } } }); });