var test1; $(document).ready(function () { test1 = $(\"#test1ID\").jQueryPlugin(); }); var test2; $(document).ready(function () { test2 = $(\"#test2ID\").jQuery
var test = [], n = 5; $(document).ready(function () { for(var i=0; i < n; i++) test.push($("#test"+i+"ID").jQueryPlugin()); }); // the values in test won't be accessible before the document is loaded.