Code Monkey home page Code Monkey logo

bettercheckbox's Introduction

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 [email protected]

bettercheckbox's People

Contributors

michalkow avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.