I would like to have a myFunction run another function which has a previously defined argument in its name being passed through myFunction.
I currently have
function myFunction(SelectedImageNumber)
{
alert(SelectedImageNumber);
}
passing the image's number (1 - 47), and it announces in an alert.
Instead of an alert, I would like it to run a function by the name of
selectImage1(){
stuff;
}
selectImage2(){
other stuff;
}
...
selectImage47(){
even more stuff;
}
I'm learning as I go, and don't have a lot of javascript experience... Thanks