Hi everyone,
I am aware this is not a javascript forum but I thought someone might be able to help me out. I'm not sure if there is a different way to do this.
I am working with classes. In class Script I have a method called showRegisterForm.
in the script class i have a variable:
var $_currentDivisionID;
here is my method:
function showRegisterForm(){
// there is a drop down list in here for divisions.
// I want the next drop down list (teams) to populate based on what I have selected for the division.
// I thought I might have to use a javascript (onChange), to make this happen. Perhaps to set the variable "currentDivisionID" in the script class to whatever the divisionID is for the form. Then I could use that divisionID to get the teamID's in that division.
}
I hope someone can help me. I don't know javascript well enough so if someone could help me with the code there, or has a different idea on how I can do this it would be greatly appreciated. Thanks!