GithubHelp home page GithubHelp logo

guoyu07 / jquery-czcheckbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lancerhe/jquery-czcheckbox

0.0 0.0 0.0 176 KB

A simple, lightweight jQuery plugin for beautiful checkbox.

HTML 56.99% JavaScript 40.84% CSS 2.16%

jquery-czcheckbox's Introduction

czCheckbox jQuery plugin

Introduction

czCheckbox is a jQuery plugin that allows you to turn default browser checkbox into much more attractive.

The plugin is usable not only for end users, but also for developers. czCheckbox has a lot of configuration options so you can modify its behaviour and appearance. From this version the core CSS file is separated from the CSS that provides checkbox's appearance, and now you are able to easily create new skins for the plugin.

Examples

Please view demo page to see the possibilities of czCheckbox.

Installation

Please follow these instructions to install czCheckbox:

Download and unpack the archive. Include jQuery and plugin files to your web page:

<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.czCheckbox.js"></script>

Include core or your skin CSS files to your page:

<link rel="stylesheet" type="text/css" href="images/style.css" />
<link rel="stylesheet" type="text/css" href="images/skin_name.css" />

Done! Now make your checkboxs look and behave sexy!

$("#checkboxlist").czCheckbox();
$("#checkboxlist").czCheckbox({
    changeCallback: function(){
        alert('changed')
	}
});

Usage and configuration options

czCheckbox has a number of configuration options that are passed to the plugin in the form of JavaScript object. The full list of options is:

className String, Default: null
The class name of checkbox list wrap.
inputName String, Default: null
The name of checkbox you need.
initCallback Funtion, Default: null
function that is called at the end of constrictor.
emptyCallback Funtion, Default: null
function that is called when the checkbox has no choice.
forbidCallback Funtion, Default: null
function that is called when the disabled checkbox is selected.
changeCallback Funtion, Default: null
function that is called when the selection of checkbox is changed.

In this version I have separated core CSS and presentational CSS, so now it's possible to create new skins for czCheckbox. The download package contains one example skin. Feel free to create your own based on it.

Browser compatibility

czCheckbox has been tested and works on the following browsers:

Internet Explorer 6.0 + Chrome Firefox Opera

Support project

Every user of czCheckbox adds some value to it, so you help me by just using it. However, if you want to help more, you can do the following:

Tell the world about czCheckbox. You can write an atricle or a blog post about it or just tell your friends/collegues about it. Test it on browsers that are not currently supported "officially". Report a bug. If you are web designer/developer, I will be glad to collaborate with you. If you have some suggestions on design/programming, feel free to email me at Kadalashvili at Vladimir at gmail dot com.

Please don't donate money, it's needless.

jquery-czcheckbox's People

Contributors

lancerhe 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.