Changed includes to require_once. No reason for these files to be included much less more than once.
setSelection returns current object
label parameter added to addDate, addDatetime, and addColor
added parameter to getInputStringArray - $choice_as_array. If true (default) the template label will be an array with all the values. If set to false, the choices will each be returned with different labels (e.g. foobar array would be foobar_1, foobar_2, etc.)
addClass returns current object to allow chaining.
Comment added.
setValue now checks the format. Important to conform with HTML5 standards.
Created addAccept method to allow dev to use the HTML5 accept parameter. http://www.w3.org/TR/html-markup/input.file.html#input.file.attrs.accept
Default size is now null.
addClass method added
purgeBox made static and error check made.