Hey there! I'm trying to disable a checkbox first, and then add a CSS property. I've come up with the code below. The checkbox gets disabled, but unfortunately, the CSS property isn't added.
$("input:radio,input:checkbox").each(
function (nitem,obj){
if (labelTag[0].nodeName == 'LABEL'){
labelTag.click(function(ev){
$(this).prev().checkboxradio('disable').css("color","red");
});
}
});
Here is the HTML code:
<div class="simple-checkbox chk">
<input type="checkbox" id="billingaddress" class="radio">
<label class="gray enableExpressCK" for="billingaddress">Enable Express Checkout</label>
</div>