Is it possible to fill the checkbox with a background colour when checked? Also to disable the 'tick' itself.
How do I achieve this? Should I be looking at jQuery/Javascript for this?
Fiddle Demo: http://jsfiddle.net/119a7e8r/
li.squaredTwo li label {
display:none
}
input[type=checkbox]:checked {
background:red
}
<ul>
<li id='field_1_20' class='gfield squaredTwo field_sublabel_below field_description_below' >
<label class='gfield_label' >Is it free</label>
<div class='ginput_container ginput_container_checkbox'>
<ul class='gfield_checkbox' id='input_1_20'>
<li class='gchoice_1_20_1'>
<input name='input_20.1' type='checkbox' value='Yes' id='choice_1_20_1' tabindex='35' />
<label for='choice_1_20_1' id='label_1_20_1'>Yes</label>
</li>
</ul>
</div>
</li>
</ul>
divs) and pick which one with:checked+.cstm-chkin the css, while hiding the checkbox itself and sending any onclick events to the checkbox. Doesn't need jQ unless your target browser(s) include ancient relics, and the js is simply the onclick property firing athis.previousElementSibling.click();