A jQuery OR is not "Red OR Blue". An OR is showVal='Red' || showVal="Blue". You could also use inArray. Initialize showVal as showVal = ['Red','Blue'], then use $.inArray($("input[name^='item_meta[" + fieldID + "]']:checked").val(), showVal) || $.inArray($("input[name^='item_meta[" + fieldID + "]']:checked").val(), showVal).
Please login or Register to submit your answer