Use jquery to search for javascript functions by name and invoke
Hi all,
Have an issue I would be grateful for some help with:
I have some dynamically generated HTML
It ends up with several java script functions with predictable names
e.g.
function_1()
function_2()
function_3()
....
function_x()
I do not know in advance what x will be now do I have any way to find out.
I would like to call each function in turn, although the order in not particularly important.
Is there any way I can use jquery to perform something like (in pseudo code)
//arr[] = search_for_any_function_with_name_like(''function*'); //array of function pointers
//for(each x in arr){
// arr[x].invoke(); //invokes the function
//}
I hope that makes sense. Any help really appreciated!!!