Input Controls

You do not need to have a form to use w2ui library's fields (input controls). All of the fields can be used outside of w2form on any text input element.
Below is the list of supported control types and corresponding HTML elements they need. Please note that there is no <select> element. Similar functionality is done with list (single item selection) or enum (multi items selection).
text input[type=text] or textarea
int input[type=text]
float input[type=text]
hex input[type=text]
money input[type=text]
alphanumeric input[type=text]
email input[type=text]
checkbox input[type=checkbox]
password input[type=password]
date input[type=text]
list input[type=text]
enum input[type=text]
- int
- float
- money
- percent
- date
- enum
$(function () { $('#int').w2field('int'); $('#money').w2field({ type: 'money', arrows: true }); $('#percent').w2field({ type: 'float', arrows: true }); $('#float').w2field('float'); $('#date').w2field('date'); $('#enum').w2field({ type: 'enum', items: ['item 1', 'item 2', 'item 3', 'item 4', 'person 1', 'person 2', 'person 3', 'person 4' ] }); });