I have an array that all the name of all selected check boxes. How can I check if that array contains specific value other than given string.
var selected_options = $('input[checked=checked]').map( function() {
return $(this).attr('name');
}).get();
How can I check if the array selected_options has other elements other than lets say 'CancelTerms'?
var exists = selected_options.indexOf('CancelTerms') > -1$('input[checked=checked][name="CancelTerms"]') .length > 0