Hi I want to disable a check box first, then i want to add a css property. I have written the below code. By this code the check box is disabled but the css property is not 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");
});
}
});
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>