Run loops for Arrays based on change function()

Run loops for Arrays based on change function()


Currently I have a Select based form which shows values based on my selections.

It's all working fine and you can see it here - http://jsfiddle.net/4ppDS/

But the way I'm writing the script it is going to be unnecessarily long.

So I thought of creating various arrays and looping them based on my conditional selection.
I have been trying to get it right but so far been unsuccessful.


You can see it here -   http://jsfiddle.net/uM9FE/

Can some one please help me.
As of now when I make a selection, only one item from the array is being called.