betterCheckbox is a jquery plugin that allows you to customize your checkbox forms using CSS.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
betterCheckbox.css
betterCheckbox.js
betterCheckbox.min.js
checkmark-disabled.png
checkmark.png
examples.html

README.md

betterCheckbox

betterCheckbox is a jquery plugin that allows you to customize your checkbox forms using CSS.

Browser Support

betterCheckbox has been tested and should work in

  • Internet Explorer 9
  • Safari
  • Firefox
  • Chrome
  • Opera

Examples

You can find some examples here.

Usage

If you want to use default style include betterCheckbox and its stylesheet on your page before </body> tag

<link href="betterCheckbox.css" type="text/css" rel="stylesheet">
<script src="/path/to/betterCheckbox.min.js"></script>

Then just add it to one of DOMs elements

<script>
$('#elementsID').betterCheckbox();
</script>

API

Settable Options

Option Description Data Type Default
boxClass Name of the class you want to use for the checkbox string 'betterCheckbox-box'
tickClass Name of the class you want to use for the checkmark string 'betterCheckbox-tick'
tickInnerHTML Set innerHTML for checkmark div (you can use text as a checkmark) string ' '
disabledBoxClass Name of the class you want to add to the checkbox when disabled string 'disabled'
disabledTickClass Name of the class you want to add to the checkmark when disabled string 'disabled'

Methods

Method Description
disable Disables the checkbox
enable Enables the checkbox
check Checks the checkbox
uncheck Unchecks the checkbox
destroy Removes plugin functionality

Other checkbox plugins

If you don't want to style checkbox yourself, or you are looking for some specific look, try those plugins:

Fancy checkboxes and radio buttons

jqTransform

jQuery checkbox

iOS Checkboxes

Niceforms

jQuery Fancy Custom Radio-button and Checkbox

Coming Soon

  • betterRadio

License

betterCheckbox plugin is released under MIT license.

Credits

betterCheckbox plugin was created by Michał Kowalkowski. You can contact me at kowalkowski.michal@gmail.com