Skip to content

Instantly share code, notes, and snippets.

@vgrem
Last active December 11, 2015 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrem/4590153 to your computer and use it in GitHub Desktop.
Save vgrem/4590153 to your computer and use it in GitHub Desktop.
Example 1. Setting TaxonomyWebTaggingControl control value
//Example 1. Setting TaxonomyWebTaggingControl control value during event (page load, button click and etc.)
function initCountryTaggingControl() {
var countriesControlId = "ctl00_PlaceHolderMain_ctl03";
var continentTermValue = "Africa|43f3b1e7-e40c-45d2-a613-88643668d373";
setTaxonomyControlObjectValue(countriesControlId, continentTermValue);
}
ExecuteOrDelayUntilScriptLoaded(initCountryTaggingControl, 'ScriptForWebTaggingUI.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment