jQuery to check if css custom checkbox has been checked -
i had build custom checkbox using following css: input[type="checkbox"] { display:none; } input[type="checkbox"] + label span { display:inline-block; width:19px; height:19px; margin:-1px 4px 0 0; vertical-align:middle; background:url("../image/checkbox.png") 0 -20px no-repeat; cursor:pointer; } input[type="checkbox"]:checked + label span { background:url("../image/checkbox.png") 0 -1px no-repeat; } however having problem in checking if checkbox checked or not following function: var radio_check = $('#one input[type="checkbox"]'); function add_color(element, color){ element.css('background-color', color); } function checkemailformat(){ if(emailreg.test(emailaddressval)) { add_color(email, red); } else { return true; } } function check_radio_checkb(){ ...