Jump to content
Sign in to follow this  
BillyDow

Using JS to change cascading dropdown

Recommended Posts

I have found that if I manually click on a dropdown that is a parent to another cascading dropdown,  the cascading dropdown works.

But when I try to use javascript to change the value of that parent dropdown,  I find that it does not kick off the cascading activity of the cascading dropdown that is connect to it.  Strangely,  the value changes in the parent dropdown (so it works),  but it doesn't impact the cascading dropdown.

The js code I am using to change the parent dropdown value is:  document.getElementsByName("cbParamVirtual1")[0].value="2012";     which successfully updates the value, so I know the JS works.  But it doesn't impact the cascading dropdown. 

Is there an onchange event that is misfiring?  Any suggestions?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×