1document.getElementById('one').addEventListener('click', function(){
2 var two = document.getElementById('two');
3 two.checked = ! two.checked;
4 two.dispatchEvent('change');
5});
1function updateInput(ish){
2 document.getElementById("fieldname").value = ish;
3}