var test1; $(document).ready(function () { test1 = $(\"#test1ID\").jQueryPlugin(); }); var test2; $(document).ready(function () { test2 = $(\"#test2ID\").jQuery
eval() function is used to evaluate script in a string variable. For example :
var test1; eval("test1=" + theArrayOfStrings[i]); test1.foo();
But take a lok at this question before use When is JavaScript’s eval() not evil?