Custom jQuery Checbox Radio Input Plugin Custom Checkbox - Download Custom jQuery Checbox & Radio Input Plugin - Custom Checkbox

Download Custom jQuery Checbox & Radio Input Plugin – Custom Checkbox

Posted on

This time I will share jQuery Plugin and tutorial about Custom jQuery Checbox & Radio Input Plugin – Custom Checkbox, hope it will help you in programming stack.

Custom jQuery Checbox Radio Input Plugin Custom Checkbox - Download Custom jQuery Checbox & Radio Input Plugin - Custom Checkbox
File Size: 22 KB
Views Total: 3505
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Custom Checkbox is a lightweight jQuery plugin which allows you to change the look of checkboxes and radio buttons by using your own images for check/uncheck states.

Basic usage:

1. Import jQuery library and the jQuery custom checkbox plugin’s JavaScript file into your html file.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="source/jquery.checkbox.js"></script>

2. Wrap your checkboxes and radio buttons into label elements.

1 <label>
2   <input type="checkbox" name="demo">
3     <span>Option 1</span>
4 </label>

3. Call the function on the label element and specify the images for check/uncheck symbols.

1 $("label").checkbox({
2   checked: "checked.png",
3   check: "check.png"
4 });

4. Callback functions.

01 $("label").checkbox({
02   checked: "checked.png",
03   check: "check.png",
04   onChange: function() {
05     // do something
06   },
07   onLoad: function(i) {
08     // do something
09   }
10 });

This awesome jQuery plugin is developed by putrasurya. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net