dotNetCoder
03-14-2005, 08:42 AM
Hello all.
I have an urgent question and I wish someonene could answer:
Is it possible to fire the onchange (for a dropdownlist) event programmatically from javascript?
Actually I have created a function to link two Dropdownlists in a Parent-Child relation, but the problem is that if I have more than two level relation betwen my DDLs, the onchange event doesn't fire for the non direct ChildDDL.
For example, I have a function
loadChildOptions(ParentDDL, ChildDDL){
//function to change ChildDDL options relatively to ParentDDL
//ChildDDL.options.add(...);
//ChildDDL.selectedIndex=0; but the onchange event of ChildDDL doesn't fire
}
I need to fire the onchange for ChildDDL from the loadChildOptions function.
Any idea about this?
I have an urgent question and I wish someonene could answer:
Is it possible to fire the onchange (for a dropdownlist) event programmatically from javascript?
Actually I have created a function to link two Dropdownlists in a Parent-Child relation, but the problem is that if I have more than two level relation betwen my DDLs, the onchange event doesn't fire for the non direct ChildDDL.
For example, I have a function
loadChildOptions(ParentDDL, ChildDDL){
//function to change ChildDDL options relatively to ParentDDL
//ChildDDL.options.add(...);
//ChildDDL.selectedIndex=0; but the onchange event of ChildDDL doesn't fire
}
I need to fire the onchange for ChildDDL from the loadChildOptions function.
Any idea about this?