Indicates what field to set focus on render.
Integer, default = 0
Once the form is rendered, and if the .focus property is greater or equal to 0 it will set focus to that field. If you do not want auto focus, set .focus to -1.
If your HTML template is defined as follows: <div class="w2ui-page page-0"> <div class="w2ui-field"> <label>First Name</label> <div> <input name="first_name" type="text" maxlength="100" size="60"/> </div> </div> <div class="w2ui-field"> <label>Last Name</label> <div> <input name="last_name" type="text" maxlength="100" size="60"/> </div> </div> <div class="w2ui-field"> <label>Text Area</label> <div> <textarea name="field_textarea" type="text" style="width: 385px; height: 80px;"></textarea> </div> </div> </div> <div class="w2ui-buttons"> <button class="w2ui-btn" name="reset">Reset</button> <button class="w2ui-btn" name="reset">Reset</button> </div> The form definition will be: $('#form').w2form({ name : 'form', focus : 2, fields : [ { name: 'first_name', type: 'text' }, { name: 'last_name', type: 'text' }, { name: 'field_textarea', type: 'text' } ], actions : { "reset": function () { this.clear(); }, "save": function () { this.save(); } } });