February 29, 2012
How to use images for check boxes using CSS or may be Javascript?
Question by Imran
It is obviously very simple question but I have never done such thing before. My designer want some thing like this (it is on left side. Checked ones are grey and other white) for check boxes. Any help regarding this will be appreciated.
Answer by KooiInc
One idea is to use a span with background-image (empty box), hide a related checkbox, and assign a clickhandler to the the span (onclick: change checked attribute of the related hidden checkbox, change background image of the span accordingly).
Here is an example of that
Answer by Starx
Here is a jQuery Script for that
http://blog.nerdattack.com.my/2009/09/beautiful-checkboxes-combo-boxes-with.html