Skip to content

Instantly share code, notes, and snippets.

@leedo
Created March 31, 2012 14:52
Show Gist options
  • Save leedo/2265761 to your computer and use it in GitHub Desktop.
Save leedo/2265761 to your computer and use it in GitHub Desktop.
$('div[id*="taxonomy-"]').find('input[type="checkbox"], input[type="radio"]').live('change', function(){
setTimeout(function() {
acf.data.taxonomy = ['0'];
$('div[id*="taxonomy-"] input:checked').each(function(){
acf.data.taxonomy.push($(this).val())
});
update_fields();
}, 0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment