On Jul 7, 11:04 am, "Josh Nathanson" <joshnathan...@gmail.com> wrote:
> You can't.
Of course you can.
> You'll have to create a global variable outside document.ready:
>
> var myFuncs = {};
Or just:
var foo;
or from within the ready function:
var global = (function(){return this;})();
global.foo = function(){...};
>
> $(document).ready(function() {
> myFuncs.foo = function() {
Then myFuncs.foo won't be available until the ready function is
called. If foo is declared outside the function, assign the value at
the same time.
--
Rob