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
None other than I am more comfortable with js :) . It is part of an elaborate script.
is there a reason you want to copy it only using js and not groovy script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.