I want to set class to Checkbox only if preexising class is missing for the checkbox. Also note it it may contain empty class then also overwrite it with new class. I'm using following but how should I add the condition to the find?
$(this).find("input[type='radio'],input[type='checkbox']").addClass('IE8Border');
I'm trying in this direction:
$(this).find("input[type='radio'],input[type='checkbox']").each(function() {
$(this)[("[class='']")].addClass('IE8Border');
$(this)[(":not([class])")].addClass('IE8Border');
});