angelsk / mooFormElements

Custom form widgets with MooTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mooFormElements

mooFormElements is a MooTools port of Ryan Fait's work; a nice, unobtrusive way of creating custom styled form inputs.

Current only supports:

  • input[type=checkbox]
  • input[type=radio]
  • select:not([multiple])

Definitely alpha for now!

Usage

Make sure you're using MooTools 1.4 (may work on earlier versions, may not) - does not require any of Core.

Firstly, you need to define what your custom form inputs will look like, refer to example.htm, and give all inputs you'd like to target the 'styled' class.

Next, include mooFormElements.js (after MooTools, obviously).

Lastly, instantiate the mooFormElements class, either in a domready, or at the end of the page.

About

Custom form widgets with MooTools

License:MIT License


Languages

Language:JavaScript 77.2%Language:HTML 22.8%