Dynamically call javascript functions
hi i have 4 functions named
func1(), func2(), func3(), func4()
The problem is it has to be called based on the number.
i tried using eval() but it is not a good way so i would like to know how to dynamically call any one of the methods if the number is passed
thanks for the help
|