I have 3 jQuery functions with indexed progressive name such as:
function foo_1()
{
...
}
function foo_2()
{
...
}
function foo_3()
{
...
}
I need to dynamically discern the functions as shown:
foo_[i]
The overall purpose is to call a different function depending on the value of i
variable.
How should I do that?