I want to implement multiple jQuery plugins for a small application. I have the list of plugins names and the plugins.
How can I call a plugin having its name stored in a variable?
So, instead of this:
$("div#exercise-container").demo_plugin_for_exercise1();
$("div#exercise-container").demo_plugin_for_exercise2();
I want to have a
var plugin_name = "demo_plugin_for_exercise1";
and use it to call the plugin with that name.