Generate HTML template for simple forms (Internal method).
generateHTML()
Returns HTML text.

#### Description

In many cases the HTML template for the form is very typical - fields in one column, may be a few tabs. Instead of creating many HTML files with this typical HTML template, they can be generated at run-time. The generateHTML is an internal method and gets called when no HTML template is defined. First the form will check .formURL, .formHTML, and innerHTML of the .box. If no HTML template is defined it will be generated.
The method will loop through all the .fields and .actions to generate HTML template. It will use html property of the field if it is defined. It can have following structure: html = { caption : '', // caption for the field group : '', // if not empty then starts a group before field attr : '', // additional attributes inside <input> control span : 6, // number 1-9 that defined with of the caption span text : '', // any html that will be placed after the input control page : 0 // page number control belongs to } You should not call this method directly. The following is the example how to use it $('#form').w2form({ name : 'form', fields: [ { name: 'field.text', type: 'text', required: true, html: { caption: 'Field 1', attr: 'size="40"', span: 5 } }, { name: 'field.alpha', type: 'alphanumeric', required: true, html: { caption: 'Field 2', attr: 'size="40"', span: 5 } }, { name: 'field.int', type: 'int', required: true html: { caption: 'Field 3', attr: 'size="40"', span: 5 } } ], actions: { reset: function () {}, save: function () {} } });