Skip to content

Instantly share code, notes, and snippets.

@mattcdavis1
Created June 15, 2013 18:51
Show Gist options
  • Save mattcdavis1/5789139 to your computer and use it in GitHub Desktop.
Save mattcdavis1/5789139 to your computer and use it in GitHub Desktop.
$('[name="playa[channels][]"] option').each(function() {
var optionText = $(this).text().toLowerCase();
if(optionText.indexOf("team") !== -1 || optionText.indexOf("people") !== -1) {
$(this).attr('selected', 'selected');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment