This is a small unobtrusive JQuery plugin function which allows you to change any input checkbox to an image version while retaining full functionality! It even pre-loads the images to keep it snappy.
Demo
Example 1
Example 2
Example 3
Example 4
Download
Options
- "tickedImage" - Image to be used when ticked
- "unTickedImage" - Image to be used when unticked
- "imageClass" - CSS Class to apply to the images.
Usage
- Download/Extract JQuery
- Download/Extract our plugin
- Include jquery and the plugin in your page with;
<script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript" src="jquery.imageTickBox.js">
- Include a jQuery selector function call. E.g. to apply this to all tickboxes on the page use;
jQuery(document).ready(function(){ jQuery("input:[type=checkbox]").imageTickBox({ tickedImage: "/images/checkbox_tick.png", unTickedImage: "/images/checkbox_notick.png", imageClass: "tickbox" }); });
License
Change Log
v1.0 - First Version
jQuery Plugins Project Page
http://plugins.jquery.com/project/ImageTickBox
Donate
Here is a paypal link for if you find this useful and would like to buy me a drink!

9 comments: