A lightweight Form element (Select, Radio, Checkbox, File upload) Styling jQuery Plugin.
Style HTML forms with CSS.
bower install --save-dev unitform
OR
Download, then include unitform.min.js
, and unitform.css
, then define plugin (see below).
To add Unitform to one selectbox:
$('select').unitform();
Or, to add it to multiple form elements:
$('select, input[type="radio"], input[type="checkbox"], input[type="file"]').unitform();
Or, to add to an upload only, with custom options:
$('input[type="file"]').unitform({ fileHelperText: 'Select a File', fileHelperButton: 'Add File' });
fileHelperText
string - text before a file is selected, defaults to "No File Selected"
fileHelperButton
string - file button text, defaults to "Upload"
unitform.css
- base theme