Friday, 18 July 2014

Update SharePoint Managed Metadata using Javascript



<script type="text/javascript" src="/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var id = "1";
var name = "Hello";
var vs=name+"|"+id;
document.getElementById('MMD_$input').innerText=vs;
document.getElementById('MMD_$containereditableRegion').innerText=name;
});
</script>