I was trying to copy values from one cascade select list to another. It is fairly easy to copy the first value using something like
var x= document.getElementById('customfield_10000');
var xSecondValue= document.getElementById('customfield_10000:1');
var y= document.getElementById('customfield_20000');
var ySecondValue= document.getElementById('customfield_20000:1');
y.selectedIndex= x.selectedIndex;
But this does not trigger any event to refresh the values of second list for custom field y so that I can say
ySecondValue.selectedIndex= xSecondValue.selectedIndex;
Is there a way to solve this problem? Thanks in advance