Checkbox Radio Inputs jQuery Checks - Download Custom Checkbox & Radio Inputs - jQuery Checks

Download Custom Checkbox & Radio Inputs – jQuery Checks

Posted on

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

Checkbox Radio Inputs jQuery Checks - Download Custom Checkbox & Radio Inputs - jQuery Checks

File Size: 10.8 KB
Views Total: 2724
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Checks is a really small, cross-browser jQuery/zepto plugin which replaces the ugly checkboxes and radio buttons with custom tick/check icons.

How to use it:

1. To use this plugin, link to the required files as shown blow:

1 <link rel="stylesheet" href="checks.css">
2 <script src="//code.jquery.com/jquery.min.js"></script>
3 <script src="jquery.checks.js"></script>

2. Add checkboxes and radio buttons to the web page.

01 <label>
02   <input type="radio" name="demo" />Checks
03 </label>
04 <label>
05   <input type="radio" name="demo" checked />Checked
06 </label>
07 <label>
08   <input type="radio" name="demo" disabled />Disabled
09 </label>
10 <label>
11   <input type="radio" name="demo2" checked disabled />Checked + Disabled
12 </label>
13  
14 <label>
15   <input type="checkbox" name="demo" />Checks
16 </label>
17 <label>
18   <input type="checkbox" checked />Checked
19 </label>
20 <label>
21   <input type="checkbox" disabled />Disabled
22 </label>
23 <label>
24   <input type="checkbox" checked disabled />Checked + Disabled
25 </label>

3. Just call the function on the checkbox & radio inputs and you’re done.

1 $('input').checks();

4. Default plugin options.

1 $('input').checks({
2   class_radio: 'ico-radio',
3   class_checkbox: 'ico-checkbox',
4   class_checked: 'sed',
5   class_disabled: 'disabled',
6   types: ['radio', 'checkbox']
7 });

Change log:

2017-09-29


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

source : jqueryscript.net