/unitform

Style HTML forms with CSS (jQuery Plugin)

Primary LanguageJavaScript

Unitform JS v2.1

A lightweight Form element (Select, Radio, Checkbox, File upload) Styling jQuery Plugin.

Style HTML forms with CSS.

Install

bower install --save-dev unitform

OR

Download, then include unitform.min.js, and unitform.css, then define plugin (see below).

Use

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"

Style

unitform.css - base theme